From ea60cc67a4de56035bf03a7ece698883af8e7147 Mon Sep 17 00:00:00 2001 From: "kouhei.takemoto" Date: Sun, 19 Apr 2020 11:51:41 +0900 Subject: [PATCH] =?UTF-8?q?SQLMAP=E3=81=AEisDatetime=E3=81=A7NULL=E3=81=88?= =?UTF-8?q?=E3=82=89=E3=83=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 3 ++- src/Sqlmap/Parser.class.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 7f74eb0..bf1d6e0 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,8 @@ "citrus-framework/configure": "^1.0", "citrus-framework/intersection": "^1.0", "citrus-framework/variables": "^1.0", - "citrus-framework/http": "^1.0" + "citrus-framework/http": "^1.0", + "ext-dom": "*" }, "require-dev": { "php": "^7.3", diff --git a/src/Sqlmap/Parser.class.php b/src/Sqlmap/Parser.class.php index 228ad75..b4895f2 100644 --- a/src/Sqlmap/Parser.class.php +++ b/src/Sqlmap/Parser.class.php @@ -564,7 +564,7 @@ protected function _isDatetime(DOMElement $element): Dynamic $property = $this->callNestPropertyValue($this->parameter, $dynamic->property); - if (false !== strtotime($property)) + if (false === is_null($property) and false !== strtotime($property)) { $dynamic->query = $this->_nodes($element->childNodes); }