From: hickert Date: Tue, 5 Jul 2011 11:29:43 +0000 (+0000) Subject: Fixed Syntax validation X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e7dcd32bc048370462a41fa59b9ae3c032e7822b;p=gosa.git Fixed Syntax validation git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20931 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget.inc index 2c622cbf2..587623eae 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget.inc @@ -166,7 +166,7 @@ class TemplateWidget } if(!empty($this->value) && !empty($this->syntax) && - !empty($this->syntax) && !preg_match($this->syntax, $this->value)){ + !empty($this->syntax) && !preg_match('/'.$this->syntax.'/', $this->value)){ return(array(msgPool::invalid($this->display, $this->value, $this->syntax))); } return(array());