Code

Added check to avoid | in path
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 29 Aug 2005 08:15:09 +0000 (08:15 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 29 Aug 2005 08:15:09 +0000 (08:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1242 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_environment.inc

index 398ef9b5dc6fa621b6aca4efdb40b1a6afebc667..92452675893c7c61a970ebb01d86988f22192dea 100644 (file)
@@ -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']];