Commit d46b7d73 authored by Robin Appelman's avatar Robin Appelman
Browse files

when the path doesnt exist show a proper error page

parent e2453d78
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment