From 117a90a57ac536eea3969ae8be9cdbcfc40dc975 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 26 Jun 2006 08:28:06 +0000 Subject: [PATCH] Added ^$ to true/false mapping git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3892 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_config.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class_config.inc b/include/class_config.inc index 900e7c80a..9cca396b6 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -93,9 +93,9 @@ class config { /* yes/no to true/false and upper case TRUE to true and so on*/ foreach($attrs as $name => $value){ - if(preg_match("/(true|yes)/i",$value)){ + if(preg_match("/^(true|yes)$/i",$value)){ $attrs[$name] = "true"; - }elseif(preg_match("/(false|no)/i",$value)){ + }elseif(preg_match("/^(false|no)$/i",$value)){ $attrs[$name] = "false"; } } -- 2.30.2