From: hickert Date: Mon, 17 May 2010 07:31:15 +0000 (+0000) Subject: Updated checks in sudo Plugin X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e8a6fd51f3f19e75342417357ff1ac90f59f879a;p=gosa.git Updated checks in sudo Plugin -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 --- diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc b/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc index 7617b9563..3ff8d97bc 100644 --- a/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc +++ b/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc @@ -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]);