From f52954f8a4d1ea5f5b1ed9887181ce24056867c0 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Thu, 3 Mar 2016 00:03:17 -0600 Subject: [PATCH] The old load included the leading %. Stick with that behavior. --- includes/syslog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/syslog.php b/includes/syslog.php index 0c8ade0cd..a84a79a49 100644 --- a/includes/syslog.php +++ b/includes/syslog.php @@ -59,7 +59,7 @@ function process_syslog($entry, $update) { * %FACILITY-SUBFACILITY-SEVERITY-MNEMONIC: Message-text */ $matches = array(); - if(preg_match('/^%?(?[A-Za-z\d\-_]+(:[A-Z]* %[A-Z\d\-_]+)?): ?(?.*)/', $entry['msg'], $matches)) { + if(preg_match('/^(?%?[A-Za-z\d\-_]+(:[A-Z]* %[A-Z\d\-_]+)?): ?(?.*)/', $entry['msg'], $matches)) { $entry['program'] = $matches['program']; $entry['msg'] = $matches['msg']; }