allow -24h style to/from for graphs again (#10294)

This commit is contained in:
Tony Murray
2019-06-02 01:18:50 -05:00
committed by GitHub
parent 15d72c23b0
commit 437a577dba

View File

@@ -3,11 +3,11 @@
use LibreNMS\Util\Clean;
if ($_GET['from']) {
$from = (int)$_GET['from'];
$from = preg_match('/(-\d+[hdm]|now)/', $_GET['from']) ? $_GET['from'] : (int)$_GET['from'];
}
if ($_GET['to']) {
$to = (int)$_GET['to'];
$to = preg_match('/(-?\d+[hdm]|now)/', $_GET['to']) ? $_GET['to'] : (int)$_GET['to'];
}
if ($_GET['width']) {