From b144181a4622dc0cf6955e2335ee3f633499011b Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 4 Sep 2006 09:14:20 +0000 Subject: [PATCH] Avoid mount paths with spaces git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4576 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/environment/class_environment.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 9f5e7c4ce..f9671b54a 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -545,6 +545,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']) || -- 2.30.2