mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding fix for #1988
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4385 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
dfb4eefaf8
commit
51969dc95a
1 changed files with 5 additions and 6 deletions
|
@ -400,9 +400,6 @@ class Controller extends Object {
|
|||
session_write_close();
|
||||
}
|
||||
|
||||
if ($url !== null) {
|
||||
header('Location: ' . Router::url($url, true));
|
||||
}
|
||||
if (is_numeric($status) && $status > 0) {
|
||||
$codes = array(
|
||||
100 => "Continue",
|
||||
|
@ -443,13 +440,15 @@ class Controller extends Object {
|
|||
501 => "Not Implemented",
|
||||
502 => "Bad Gateway",
|
||||
503 => "Service Unavailable",
|
||||
504 => "Gateway Time-out"
|
||||
);
|
||||
504 => "Gateway Time-out");
|
||||
|
||||
if (isset($codes[$status])) {
|
||||
header("HTTP/1.1 {$status} " . $codes[$status]);
|
||||
header("HTTP/1.1 $status " . $codes[$status]);
|
||||
}
|
||||
}
|
||||
if ($url !== null) {
|
||||
header('Location: ' . Router::url($url, true));
|
||||
}
|
||||
if ($exit) {
|
||||
exit();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue