From: cajus Date: Thu, 1 Oct 2009 15:21:56 +0000 (+0000) Subject: Fixed regex X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f651db7d482dccdc9b99076d1e7f9dc469cfc93f;p=gosa.git Fixed regex git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14451 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/gofon/gofon/macro/class_gofonMacroParameters.inc b/gosa-plugins/gofon/gofon/macro/class_gofonMacroParameters.inc index c131d67ab..210038f6f 100644 --- a/gosa-plugins/gofon/gofon/macro/class_gofonMacroParameters.inc +++ b/gosa-plugins/gofon/gofon/macro/class_gofonMacroParameters.inc @@ -301,7 +301,7 @@ class macroParameter extends plugin foreach($_POST as $name=>$value){ /* Test if there is a variable begining with "del" */ - if(preg_match("/del/",$name)){ + if(preg_match("/^del/",$name)){ /* Extract entry id to delete */ $nr = str_replace("del","",$name) ; @@ -309,7 +309,7 @@ class macroParameter extends plugin /* unset entry */ unset($this->goFonMacroParameter[$nr]); - }elseif(preg_match("/number/",$name)){ + }elseif(preg_match("/^number/",$name)){ /* Set Post vars */ $key = $_POST[$name];