summaryrefslogtreecommitdiffstats
path: root/3rdparty
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-06-17 08:36:26 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-06-17 08:36:26 +0200
commit229587a31ea6af65fd65e22f55635437eb44a7bc (patch)
tree70b7678f5486f70b06354a11e4d51759aa16b507 /3rdparty
parent7f1e0287a91dd39403d68426258c93b3c6992382 (diff)
parentad4f066bac5e4d6777b258d6a161ab062211d787 (diff)
downloadnextcloud-server-229587a31ea6af65fd65e22f55635437eb44a7bc.tar.gz
nextcloud-server-229587a31ea6af65fd65e22f55635437eb44a7bc.zip
Merge branch 'master' into calendar_repeat
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/smb4php/smb.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/3rdparty/smb4php/smb.php b/3rdparty/smb4php/smb.php
index 69fb2487bc0..12c5890723b 100644
--- a/3rdparty/smb4php/smb.php
+++ b/3rdparty/smb4php/smb.php
@@ -326,8 +326,11 @@ class smb_stream_wrapper extends smb {
$this->dir = array_keys($o['info']);
$this->dir_index = 0;
$this->adddircache ($url, $this->dir);
+ if(substr($url,-1,1)=='/'){
+ $url=substr($url,0,-1);
+ }
foreach ($o['info'] as $name => $info) {
- smb::addstatcache($url . '/' . urlencode($name), $info);
+ smb::addstatcache($url . '/' . $name, $info);
}
} else {
trigger_error ("dir_opendir(): dir failed for path '".$pu['path']."'", E_USER_WARNING);