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']; }