aboutsummaryrefslogtreecommitdiffstats
path: root/remote.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-06-26 09:17:37 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-06-26 11:44:24 +0200
commit8c155cd51cb55c89f16d9bcfcb397d4e784ac108 (patch)
tree52aa69f7db242bb0382e374490526af13a2af9d2 /remote.php
parenta97cc293b5f04ee1d25a5e41103586f16ff02927 (diff)
downloadnextcloud-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.php3
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);