Code

Fixed Syntax validation
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 5 Jul 2011 11:29:43 +0000 (11:29 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 5 Jul 2011 11:29:43 +0000 (11:29 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20931 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget.inc

index 2c622cbf2eea1a73dfad13cb42013ea9098a75db..587623eaeb50df52bda9116c916467c7ea4d934e 100644 (file)
@@ -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());