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

Commit

Permalink
Fix error webdav in root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
c12simple committed Jun 13, 2016
1 parent 9cde874 commit 0e000ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/plugins/access.smb/smb.php
Expand Up @@ -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;
Expand Down

0 comments on commit 0e000ff

Please sign in to comment.