Code

Updated checks in sudo Plugin
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 May 2010 07:31:15 +0000 (07:31 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 May 2010 07:31:15 +0000 (07:31 +0000)
-We are not allowed to use ´ in sudoHost, -User and RunAs values.

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

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

index 7617b9563dd8e65f2b6c3e68eeeaebed06292c50..3ff8d97bc4e25fc348c0797f160f70b484ee92ab 100644 (file)
@@ -284,7 +284,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]);