From e7dcd32bc048370462a41fa59b9ae3c032e7822b Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 5 Jul 2011 11:29:43 +0000 Subject: [PATCH] Fixed Syntax validation git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20931 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../newConfigManagement/TemplateEngine/class_TemplateWidget.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.30.2