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:
Arzhel Younsi
2017-05-13 23:32:41 +02:00
committed by Neil Lathwood
parent 595e75bd14
commit 073b444d4a

View File

@ -36,7 +36,7 @@ function GenSQL($rule)
return false; return false;
} }
//Pretty-print rule to dissect easier //Pretty-print rule to dissect easier
$pretty = array('*' => '*', '(' => ' ( ', ')' => ' ) ', '/' => '/', '&&' => ' && ', '||' => ' || ', 'DATE_SUB ( NOW ( )' => 'DATE_SUB( NOW()'); $pretty = array('&&' => ' && ', '||' => ' || ');
$rule = str_replace(array_keys($pretty), $pretty, $rule); $rule = str_replace(array_keys($pretty), $pretty, $rule);
$tmp = explode(" ", $rule); $tmp = explode(" ", $rule);
$tables = array(); $tables = array();