Skip to content

Commit 175f661

Browse files
committed
Resolving Issue #101
Alert rule SQL Expression not working as expected
1 parent fed29f2 commit 175f661

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ The sylog plugin has been in development for well over a decade with increasing
8080
--- develop ---
8181

8282
* issue#102: Syslog statistics filter problem - select program
83+
* issue#101: Alert rule SQL Expression not working as expected
8384
* issue#100: Fix odd/even classes generation in report
8485
* issue#96: Syslog filtering does not work with some international characters
8586
* issue#87: Program data is not sync with syslog_incoming under PHP 7.2

syslog_process.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@
328328
AND status = ' . $uniqueID;
329329
} else if ($alert['type'] == 'sql') {
330330
$sql = 'SELECT * FROM `' . $syslogdb_default . '`.`syslog_incoming`
331-
WHERE (' . db_qstr($alert['message']) . ')
331+
WHERE (' . $alert['message'] . ')
332332
AND status=' . $uniqueID;
333333
}
334334

@@ -650,7 +650,7 @@
650650

651651
if ($syslog_report['type'] == 'sql') {
652652
$sql = 'SELECT * FROM `' . $syslogdb_default . '`.`syslog`
653-
WHERE (' . db_qstr($syslog_report['message']) . ')';
653+
WHERE (' . $syslog_report['message'] . ')';
654654
}
655655

656656
if ($sql != '') {

0 commit comments

Comments
 (0)