From: hickert Date: Mon, 29 Aug 2005 08:15:09 +0000 (+0000) Subject: Added check to avoid | in path X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dc80da413600437711933ac6f4f8b0f1be1419be;p=gosa.git Added check to avoid | in path git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1242 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 398ef9b5d..924526758 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -353,7 +353,7 @@ class environment extends plugin */ if(isset($_POST['gotoShareAdd'])){ /* We assign a share to this user, if we don't know where to mount the share */ - if((!isset($_POST['gotoShareMountPoint']))||(empty($_POST['gotoShareMountPoint']))){ + if((!isset($_POST['gotoShareMountPoint']))||(empty($_POST['gotoShareMountPoint']))||(preg_match("/[\|]/i",$_POST['gotoShareMountPoint']))){ print_red("You must specify a valid mount point."); }else{ $a_share = $this->gotoAvailableShares[$_POST['gotoShareSelection']];