]> source.dussan.org Git - nextcloud-server.git/commitdiff
use OC_Util::basename
authorRobin Appelman <icewind@owncloud.com>
Wed, 15 Jan 2014 15:02:18 +0000 (16:02 +0100)
committerRobin Appelman <icewind@owncloud.com>
Wed, 15 Jan 2014 15:02:18 +0000 (16:02 +0100)
apps/files_sharing/public.php

index ef4345da20e699fef432db2f46f68a64e8de5ef7..779b6de7451b152175a833c42a598eead58c4614 100644 (file)
@@ -111,7 +111,7 @@ if (isset($path)) {
                }
        }
        $basePath = $path;
-       $rootName = basename($path);
+       $rootName = \OC_Util::basename($path);
        if (isset($_GET['path']) && \OC\Files\Filesystem::isReadable($basePath . $_GET['path'])) {
                $getPath = \OC\Files\Filesystem::normalizePath($_GET['path']);
                $path .= $getPath;