]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix copy&paste bug from previous commit
authorBjörn Schießle <schiessle@owncloud.com>
Wed, 24 Oct 2012 11:10:30 +0000 (13:10 +0200)
committerBjörn Schießle <schiessle@owncloud.com>
Wed, 24 Oct 2012 11:11:29 +0000 (13:11 +0200)
apps/files_sharing/public.php

index a8813085d09239bcc2ca42cd5cd3d77aecaf40ed..5f74c8e5266161034676ae49f960aeaf4a7e96cf 100644 (file)
@@ -49,7 +49,7 @@ if (isset($_GET['file']) || isset($_GET['dir'])) {
                $dir = $baseDir;\r
        } else {\r
                $type = 'file';\r
-               $path = $_GET['dir'];\r
+               $path = $_GET['file'];\r
                if(strlen($path)>1 and substr($path, -1, 1)==='/') {\r
                        $path=substr($path, 0, -1);\r
                }\r