when the path doesnt exist show a proper error page

remotes/origin/etag-endpoint
Robin Appelman 2015-03-24 12:21:25 +07:00
parent e2453d78c0
commit d46b7d73e7
1 changed files with 2 additions and 0 deletions

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