Use http_response_code to set response code
Fixes #12646 Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
d4c3d283ca
commit
978538dce8
@ -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');
|
||||
}
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user