mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
DbQuery: Return non-string args as is in valueToTimestamp()
fixes #4182
This commit is contained in:
parent
4d173e6746
commit
b288d86e91
@ -251,7 +251,7 @@ class DbQuery extends SimpleQuery
|
||||
protected function valueToTimestamp($value)
|
||||
{
|
||||
// We consider integers as valid timestamps. Does not work for URL params
|
||||
if (ctype_digit($value)) {
|
||||
if (! is_string($value) || ctype_digit($value)) {
|
||||
return $value;
|
||||
}
|
||||
$value = strtotime($value);
|
||||
|
Loading…
x
Reference in New Issue
Block a user