summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-03-24 12:21:25 +0100
committerRobin Appelman <icewind@owncloud.com>2015-03-24 12:21:25 +0100
commitd46b7d73e74acb3bb7df653a89dd5300c706c3fa (patch)
tree0ae6096876de40a5a43ad3a4ab4e1baf6f0f2b62 /apps/files_sharing
parente2453d78c0a2e6fcdfa3c826cb231ab3865c4cf8 (diff)
downloadnextcloud-server-d46b7d73e74acb3bb7df653a89dd5300c706c3fa.tar.gz
nextcloud-server-d46b7d73e74acb3bb7df653a89dd5300c706c3fa.zip
when the path doesnt exist show a proper error page
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/lib/controllers/sharecontroller.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/controllers/sharecontroller.php b/apps/files_sharing/lib/controllers/sharecontroller.php
index d48e7671cfa..2f69583b412 100644
--- a/apps/files_sharing/lib/controllers/sharecontroller.php
+++ b/apps/files_sharing/lib/controllers/sharecontroller.php
@@ -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);