when the path doesnt exist show a proper error page

This commit is contained in:
Robin Appelman 2015-03-24 12:21:25 +01:00
parent e2453d78c0
commit d46b7d73e7

View 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);