From 978538dce8a786ade53f5f6721d24fae71d40ffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 18 Oct 2016 09:17:55 +0200 Subject: [PATCH] Use http_response_code to set response code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #12646 Signed-off-by: Michal Čihař --- libraries/error.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/error.inc.php b/libraries/error.inc.php index 81e5d9c69f..9067bc27f6 100644 --- a/libraries/error.inc.php +++ b/libraries/error.inc.php @@ -12,7 +12,7 @@ if (! defined('PHPMYADMIN')) { } if (! defined('TESTSUITE')) { - header('HTTP/1.1 500 Internal Server Error'); + http_response_code(500); header('Content-Type: text/html; charset=utf-8'); } ?>