From dc80da413600437711933ac6f4f8b0f1be1419be Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 29 Aug 2005 08:15:09 +0000 Subject: [PATCH] Added check to avoid | in path git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1242 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/environment/class_environment.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']]; -- 2.30.2