mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #16527 from owncloud/end-processing-when-404
End processing when file is not found
This commit is contained in:
commit
3de945d13d
1 changed files with 1 additions and 0 deletions
|
|
@ -138,6 +138,7 @@ class OC_Files {
|
|||
header("HTTP/1.0 404 Not Found");
|
||||
$tmpl = new OC_Template('', '404', 'guest');
|
||||
$tmpl->printPage();
|
||||
exit();
|
||||
} else {
|
||||
header("HTTP/1.0 403 Forbidden");
|
||||
die('403 Forbidden');
|
||||
|
|
|
|||
Loading…
Reference in a new issue