From: hickert Date: Fri, 11 May 2007 12:17:22 +0000 (+0000) Subject: Updated preg_match X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d4a670bab5fb0319823a84c45806ec3239de0c99;p=gosa.git Updated preg_match git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6361 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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); } }