From a1f68a55589034ca7d62f069064d8fb2f9911a7b Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 31 Oct 2005 08:24:59 +0000 Subject: [PATCH] Changed format, in which Shares are displayed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1769 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/environment/class_environment.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index b995f15f6..f7dc1326a 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -447,6 +447,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($_POST['gotoShareMountPoint'][0] !="/" ){ + print_red(_("You must specify a valid mount point.")); }else{ $a_share = $this->gotoAvailableShares[$_POST['gotoShareSelection']]; $s_mount = $_POST['gotoShareMountPoint']; @@ -952,7 +954,7 @@ class environment extends plugin $a_return = array(); if(is_array($this->gotoShares)){ foreach($this->gotoShares as $share){ - $a_return[$share['name']."|".$share['server']]= $share['name']." '".$share['mountPoint']."' [".$share['server']."] "; + $a_return[$share['name']."|".$share['server']]= $share['server']."://".$share['name']." on ".$share['mountPoint']; } } return($a_return); -- 2.30.2