Code

Updated sudo plugin again
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 May 2010 07:30:17 +0000 (07:30 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 May 2010 07:30:17 +0000 (07:30 +0000)
-Removed ’ from the valid charaters list form sudoUser, Host and RunAs

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@18486 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc

index c29c124e9cba583b8ab81beee683edf012c7135b..cb241e439588030a5d8c2ac2fe74394eb7984e79 100644 (file)
@@ -325,7 +325,7 @@ class sudo extends plugin
                 isset($_POST['new_'.$attr]) && 
                 !empty($_POST['new_'.$attr])){
 
-            $c = preg_quote(' *+-?_|!\'"()','/');
+            $c = preg_quote(' *+-?_|!\'"()','/');
             if(preg_match("/^[a-z0-9{$c}]*$/i",$_POST['new_'.$attr])){
                 $attrs = $this->$attr;
                 $attrs[] =  trim($_POST['new_'.$attr]);