mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
Merge pull request #3357 from SimSync/fix_3179
Fixes #3179 "Redirect to System not found page" didn't work
This commit is contained in:
@@ -391,7 +391,8 @@ class redirection
|
|||||||
header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0', true);
|
header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0', true);
|
||||||
header('Expires: Sat, 26 Jul 1997 05:00:00 GMT', true);
|
header('Expires: Sat, 26 Jul 1997 05:00:00 GMT', true);
|
||||||
}
|
}
|
||||||
if(null === $http_response_code)
|
// issue #3179 redirect with response code >= 400 doesn't work. Only response codes below 400.
|
||||||
|
if(null === $http_response_code || $http_response_code >= 400)
|
||||||
{
|
{
|
||||||
header('Location: '.$url, $replace);
|
header('Location: '.$url, $replace);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user