mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
change error code to 403
This commit is contained in:
parent
83c78bc7a8
commit
2d79a79202
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ if (!isset($_)) { //also provide standalone error page
|
|||
if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
|
||||
\OCP\JSON::error(array('data' => array('message' => $errorMsg)));
|
||||
} else {
|
||||
header('HTTP/1.0 404 ' . $errorMsg);
|
||||
header('HTTP/1.0 403 ' . $errorMsg);
|
||||
$tmpl = new OC_Template('files_encryption', 'invalid_private_key', 'guest');
|
||||
$tmpl->assign('message', $errorMsg);
|
||||
$tmpl->assign('errorCode', $errorCode);
|
||||
|
|
|
|||
Loading…
Reference in a new issue