mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
when the path doesnt exist show a proper error page
This commit is contained in:
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue