use OC_Util::basename
This commit is contained in:
parent
d279ddd9a2
commit
1462fba37c
|
@ -111,7 +111,7 @@ if (isset($path)) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$basePath = $path;
|
$basePath = $path;
|
||||||
$rootName = basename($path);
|
$rootName = \OC_Util::basename($path);
|
||||||
if (isset($_GET['path']) && \OC\Files\Filesystem::isReadable($basePath . $_GET['path'])) {
|
if (isset($_GET['path']) && \OC\Files\Filesystem::isReadable($basePath . $_GET['path'])) {
|
||||||
$getPath = \OC\Files\Filesystem::normalizePath($_GET['path']);
|
$getPath = \OC\Files\Filesystem::normalizePath($_GET['path']);
|
||||||
$path .= $getPath;
|
$path .= $getPath;
|
||||||
|
|
Loading…
Reference in New Issue