aboutsummaryrefslogtreecommitdiffstats
path: root/config/syslog-ng/syslog-ng.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/syslog-ng/syslog-ng.inc')
-rw-r--r--config/syslog-ng/syslog-ng.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/syslog-ng/syslog-ng.inc b/config/syslog-ng/syslog-ng.inc
index 75d5bb4d..e1b4d35e 100644
--- a/config/syslog-ng/syslog-ng.inc
+++ b/config/syslog-ng/syslog-ng.inc
@@ -235,7 +235,7 @@ function syslogng_get_log_files($objects) {
foreach($objects as $object) {
if($object['objecttype'] == 'destination') {
- preg_match("/file\(['\"]([^'\"]*)['\"]/", base64_decode($object['objectparameters']), $match);
+ preg_match("/\bfile\b\(['\"]([^'\"]*)['\"]/", base64_decode($object['objectparameters']), $match);
if($match) {
$log_file = $match[1];
array_push($log_files, $log_file);
@@ -433,4 +433,4 @@ EOD;
conf_mount_rw();
write_rcfile($rc);
}
-?> \ No newline at end of file
+?>