From f651db7d482dccdc9b99076d1e7f9dc469cfc93f Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 1 Oct 2009 15:21:56 +0000 Subject: [PATCH] Fixed regex git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14451 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/gofon/gofon/macro/class_gofonMacroParameters.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]; -- 2.30.2