summaryrefslogtreecommitdiffstats
path: root/public.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 /public.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 'public.php')
-rw-r--r--public.php3
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;
}