mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 10:58:42 +00:00
Bugfix: SQL error with alerts search bar (#12329)
* Fix SQL-error on search bar * restore escapes Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
parent
c66d6493fa
commit
a7e65be09d
@ -60,7 +60,7 @@ if (! $show_recovered) {
|
||||
}
|
||||
|
||||
if (isset($searchPhrase) && ! empty($searchPhrase)) {
|
||||
$where .= ' AND (`timestamp` LIKE ? OR `rule` LIKE ? OR `name` LIKE ? OR `hostname` LIKE ? OR `sysName` LIKE ?)';
|
||||
$where .= ' AND (`alerts`.`timestamp` LIKE ? OR `rule` LIKE ? OR `name` LIKE ? OR `hostname` LIKE ? OR `sysName` LIKE ?)';
|
||||
$param[] = "%$searchPhrase%";
|
||||
$param[] = "%$searchPhrase%";
|
||||
$param[] = "%$searchPhrase%";
|
||||
|
Loading…
Reference in New Issue
Block a user