From: hickert Date: Fri, 15 Sep 2006 05:04:46 +0000 (+0000) Subject: Applied patch from GOsa2.5 revision 4576, (Spaces are not allowed within gotoShare... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=af204de156425f1bd28c324a843c3ae0adc38c5c;p=gosa.git Applied patch from GOsa2.5 revision 4576, (Spaces are not allowed within gotoShare mount path) git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4672 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 9313760ba..5e15d269b 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -563,6 +563,8 @@ class environment extends plugin /* We assign a share to this user, if we don't know where to mount the share */ if((!isset($_POST['gotoShareMountPoint']))||(empty($_POST['gotoShareMountPoint']))||(preg_match("/[\|]/i",$_POST['gotoShareMountPoint']))){ print_red(_("You must specify a valid mount point.")); + }elseif(preg_match('/ /', $_POST['gotoShareMountPoint'])){ + print_red(_("Spaces are not allowed in the mount path!")); }elseif(!( preg_match("/^\//",$_POST['gotoShareMountPoint']) || preg_match("/^~/",$_POST['gotoShareMountPoint']) ||