From: Robin Appelman Date: Tue, 24 Mar 2015 11:21:25 +0000 (+0100) Subject: when the path doesnt exist show a proper error page X-Git-Tag: v8.1.0alpha1~205^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d46b7d73e74acb3bb7df653a89dd5300c706c3fa;p=nextcloud-server.git when the path doesnt exist show a proper error page --- 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);