Skip to content
Snippets Groups Projects
Commit d46b7d73 authored by Robin Appelman's avatar Robin Appelman
Browse files

when the path doesnt exist show a proper error page

parent e2453d78
No related branches found
No related tags found
No related merge requests found
...@@ -154,6 +154,8 @@ class ShareController extends Controller { ...@@ -154,6 +154,8 @@ class ShareController extends Controller {
if (Filesystem::isReadable($originalSharePath . $path)) { if (Filesystem::isReadable($originalSharePath . $path)) {
$getPath = Filesystem::normalizePath($path); $getPath = Filesystem::normalizePath($path);
$originalSharePath .= $path; $originalSharePath .= $path;
} else {
throw new OCP\Files\NotFoundException();
} }
$file = basename($originalSharePath); $file = basename($originalSharePath);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment