Code

Allow "-" and "_" in application names
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Jul 2008 07:57:01 +0000 (07:57 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Jul 2008 07:57:01 +0000 (07:57 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11693 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/applications/class_applicationGeneric.inc

index 820c9cea070004e6ba4dd85cae8e39ce7e1a2e0e..d5ccca44abdbe2960898274471e28da15f8a9784 100644 (file)
@@ -426,7 +426,7 @@ class application extends plugin
     }
 
     if(preg_match("/[^a-z0-9]/",$this->cn))    {
-      $message[]=msgPool::invalid(_("Name"),$this->cn,"/^[a-z0-9]*$/");
+      $message[]=msgPool::invalid(_("Name"),$this->cn,"/^[a-z0-9_-]*$/");
     }
 
     if ($this->gosaApplicationExecute == ""){