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

Commit 8032138

Browse files
committed
Fix is_readable() call to root.
1 parent 81ba383 commit 8032138

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/plugins/access.ftp/class.ftpAccessWrapper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ public function url_stat($path, $flags)
210210
$parts = $this->parseUrl($path);
211211
$link = $this->createFTPLink();
212212
$serverPath = AJXP_Utils::securePath($this->path."/".$parts["path"]);
213+
if(empty($parts["path"])) $parts["path"] = "/";
213214
if ($parts["path"] == "/") {
214215
$basename = ".";
215216
} else {

0 commit comments

Comments
 (0)