Skip to content

Commit

Permalink
Merge pull request #8 from citrus-framework/fix_sqlmap_datetime
Browse files Browse the repository at this point in the history
SQLMAPのisDatetimeでNULLえらー
  • Loading branch information
take64 authored Apr 19, 2020
2 parents da8c6de + ea60cc6 commit ad125b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/Sqlmap/Parser.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ad125b3

Please sign in to comment.