From 0e000ffcd195b854aef5e6d91f6547e566aca5bc Mon Sep 17 00:00:00 2001 From: c12simple Date: Mon, 13 Jun 2016 17:33:44 +0200 Subject: [PATCH] Fix error webdav in root folder --- core/src/plugins/access.smb/smb.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/plugins/access.smb/smb.php b/core/src/plugins/access.smb/smb.php index 5b0ce78494..e3847f11eb 100644 --- a/core/src/plugins/access.smb/smb.php +++ b/core/src/plugins/access.smb/smb.php @@ -63,6 +63,7 @@ public function parse_url ($url) list ($pu['share'], $pu['path']) = (preg_match ('/^([^\/]+)\/(.*)/', $path, $regs)) ? array ($regs[1], preg_replace ('/\//', '\\', $regs[2])) : array ($path, ''); + if (empty($pu["path"]) && preg_match('/\/$/', $url)) $pu["path"] = "/"; $pu['type'] = $pu['path'] ? 'path' : ($pu['share'] ? 'share' : ($pu['host'] ? 'host' : '**error**')); if (! ($pu['port'] = intval(@$pu['port']))) $pu['port'] = 139; /* $i = 0; $atcount = 0;