when the path doesnt exist show a proper error page
This commit is contained in:
parent
e2453d78c0
commit
d46b7d73e7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue