Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 0e000ff

Browse files
authored
Fix error webdav in root folder
1 parent 9cde874 commit 0e000ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/plugins/access.smb/smb.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function parse_url ($url)
6363
list ($pu['share'], $pu['path']) = (preg_match ('/^([^\/]+)\/(.*)/', $path, $regs))
6464
? array ($regs[1], preg_replace ('/\//', '\\', $regs[2]))
6565
: array ($path, '');
66+
if (empty($pu["path"]) && preg_match('/\/$/', $url)) $pu["path"] = "/";
6667
$pu['type'] = $pu['path'] ? 'path' : ($pu['share'] ? 'share' : ($pu['host'] ? 'host' : '**error**'));
6768
if (! ($pu['port'] = intval(@$pu['port']))) $pu['port'] = 139;
6869
/* $i = 0; $atcount = 0;

0 commit comments

Comments
 (0)