diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-06-26 09:17:37 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-06-26 11:44:24 +0200 |
commit | 8c155cd51cb55c89f16d9bcfcb397d4e784ac108 (patch) | |
tree | 52aa69f7db242bb0382e374490526af13a2af9d2 /remote.php | |
parent | a97cc293b5f04ee1d25a5e41103586f16ff02927 (diff) | |
download | nextcloud-server-8c155cd51cb55c89f16d9bcfcb397d4e784ac108.tar.gz nextcloud-server-8c155cd51cb55c89f16d9bcfcb397d4e784ac108.zip |
Server error/hint pages with a 500 error code to avoid it being seen instead of the actual resource
* found while reviewing #7205
* allow to specify a special status code
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'remote.php')
-rw-r--r-- | remote.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/remote.php b/remote.php index a14ff6ac308..38c349bd7bd 100644 --- a/remote.php +++ b/remote.php @@ -77,8 +77,7 @@ function handleException($e) { } if ($e instanceof RemoteException) { // we shall not log on RemoteException - OC_Response::setStatus($e->getCode()); - OC_Template::printErrorPage($e->getMessage()); + OC_Template::printErrorPage($e->getMessage(), '', $e->getCode()); } else { \OC::$server->getLogger()->logException($e, ['app' => 'remote']); OC_Response::setStatus($statusCode); |