Code

Fixed char removal
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Oct 2008 16:09:51 +0000 (16:09 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Oct 2008 16:09:51 +0000 (16:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12810 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_userinfo.inc

index 62ca552772a1bfc303a952bb3d6abde2a2c27bfc..b1ad949d46e5a3daee03a68f60948eca5937fe44 100644 (file)
@@ -527,7 +527,7 @@ class userinfo
     }
 
                /* Ignore invalid characters */
-               $newACL= preg_replace('/^[rwcdm]/', '', $newACL);
+               $newACL= preg_replace('/[^rwcdm]/', '', $newACL);
 
     foreach(str_split($newACL) as $char){