From 8c155cd51cb55c89f16d9bcfcb397d4e784ac108 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 26 Jun 2018 09:17:37 +0200 Subject: 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 --- remote.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'remote.php') 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); -- cgit v1.2.3