mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
alerts: Remove prettifying of mysql query in alerts (#6614)
* Pretty mysql for alerts breaks regex rules Fix for issue #6613 * Remove useless replacements
This commit is contained in:
committed by
Neil Lathwood
parent
595e75bd14
commit
073b444d4a
@ -36,7 +36,7 @@ function GenSQL($rule)
|
||||
return false;
|
||||
}
|
||||
//Pretty-print rule to dissect easier
|
||||
$pretty = array('*' => '*', '(' => ' ( ', ')' => ' ) ', '/' => '/', '&&' => ' && ', '||' => ' || ', 'DATE_SUB ( NOW ( )' => 'DATE_SUB( NOW()');
|
||||
$pretty = array('&&' => ' && ', '||' => ' || ');
|
||||
$rule = str_replace(array_keys($pretty), $pretty, $rule);
|
||||
$tmp = explode(" ", $rule);
|
||||
$tables = array();
|
||||
|
Reference in New Issue
Block a user