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 /public.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 'public.php')
-rw-r--r-- | public.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/public.php b/public.php index f8ef7a272b3..42fd2e9f602 100644 --- a/public.php +++ b/public.php @@ -36,8 +36,7 @@ try { if (\OCP\Util::needUpgrade()) { // since the behavior of apps or remotes are unpredictable during // an upgrade, return a 503 directly - OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE); - OC_Template::printErrorPage('Service unavailable'); + OC_Template::printErrorPage('Service unavailable', '', OC_Response::STATUS_SERVICE_UNAVAILABLE); exit; } |