Code

Avoid mount paths with spaces
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Sep 2006 09:14:20 +0000 (09:14 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Sep 2006 09:14:20 +0000 (09:14 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4576 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_environment.inc

index 9f5e7c4ce77ab61b47d4e9f17af887b10cfc8bd3..f9671b54a9124e772d3f04944990e16334b75748 100644 (file)
@@ -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']) ||