]> source.dussan.org Git - nextcloud-server.git/commitdiff
when the path doesnt exist show a proper error page
authorRobin Appelman <icewind@owncloud.com>
Tue, 24 Mar 2015 11:21:25 +0000 (12:21 +0100)
committerRobin Appelman <icewind@owncloud.com>
Tue, 24 Mar 2015 11:21:25 +0000 (12:21 +0100)
apps/files_sharing/lib/controllers/sharecontroller.php

index d48e7671cfae4ccf494c113570207c482daed67c..2f69583b412d3b87450d6dc1acf8d60121dc9803 100644 (file)
@@ -154,6 +154,8 @@ class ShareController extends Controller {
                if (Filesystem::isReadable($originalSharePath . $path)) {
                        $getPath = Filesystem::normalizePath($path);
                        $originalSharePath .= $path;
+               } else {
+                       throw new OCP\Files\NotFoundException();
                }
 
                $file = basename($originalSharePath);