From d4a670bab5fb0319823a84c45806ec3239de0c99 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 11 May 2007 12:17:22 +0000 Subject: [PATCH] Updated preg_match git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6361 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_log.inc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/class_log.inc b/include/class_log.inc index 032254bb8..23f6f0128 100644 --- a/include/class_log.inc +++ b/include/class_log.inc @@ -63,13 +63,10 @@ class log { $entry['changes'] = $changes; $entry['result'] = $result; - - - - if(isset($this->config->current['LOGGING']) && preg_match("/syslog/i",$this->config->current['LOGGING'])){ + if(isset($this->config->current['LOGGING']) && preg_match("/(^|,)syslog(,|$)/i",$this->config->current['LOGGING'])){ @log::log_into_syslog($entry); } - if(isset($this->config->current['LOGGING']) && preg_match("/mysql/i",$this->config->current['LOGGING'])){ + if(isset($this->config->current['LOGGING']) && preg_match("/(^|,)mysql(,|$)/i",$this->config->current['LOGGING'])){ @log::log_into_db($entry); } } -- 2.30.2