Code

Really checked for additional characters
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Jul 2008 07:58:10 +0000 (07:58 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Jul 2008 07:58:10 +0000 (07:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11694 594d385d-05f5-0310-b6e9-bd551577e9d8

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

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