From e8a6fd51f3f19e75342417357ff1ac90f59f879a Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 17 May 2010 07:31:15 +0000 Subject: [PATCH] =?utf8?q?Updated=20checks=20in=20sudo=20Plugin=20-We=20ar?= =?utf8?q?e=20not=20allowed=20to=20use=20=C2=B4=20in=20sudoHost,=20-User?= =?utf8?q?=20and=20RunAs=20values.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18487 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- 2.30.2