Code

Applied patch from GOsa2.5 revision 4535. "Don't encode shares containing . in path"
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 15 Sep 2006 05:00:41 +0000 (05:00 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 15 Sep 2006 05:00:41 +0000 (05:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4671 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_environment.inc

index 0245be815d65e69af0561203b0ceb7ae86843664..9313760bae318a508b465af571cbc4e0c8581e89 100644 (file)
@@ -1113,7 +1113,7 @@ class environment extends plugin
     $this->attrs['gotoShare']=array();
     foreach($this->gotoShares as $name => $share){
       $mntp= $share['mountPoint'];
-      if (!preg_match('=^[a-z0-9+_/%-]+$=i', $mntp)){
+      if (!preg_match('=^[a-z0-9+\._/%-]+$=i', $mntp)){
         $mntp= base64_encode($mntp);
       }
       $this->attrs['gotoShare'][] =$share['server']."|".$share['name']."|".$mntp."|".$share['PwdHash']."|".$share['Username'];