mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
allow -24h style to/from for graphs again (#10294)
This commit is contained in:
@@ -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']) {
|
||||
|
Reference in New Issue
Block a user