Skip to content
Snippets Groups Projects
Commit c10dcb7d authored by Andreas Gohr's avatar Andreas Gohr
Browse files

Workaround for IE& redirect to hash bug FS#1647

This needs testing. We need feedback from someone where this is
reproducible broken before applying this patch.
parent b038bf62
No related branches found
No related tags found
No related merge requests found
......@@ -1475,6 +1475,17 @@ function send_redirect($url){
// always close the session
session_write_close();
// work around IE bug
// http://www.ianhoar.com/2008/11/16/internet-explorer-6-and-redirected-anchor-links/
list($url,$hash) = explode('#',$url);
if($hash){
if(strpos($url,'?')){
$url = $url.'&#'.$hash;
}else{
$url = $url.'?&#'.$hash;
}
}
// check if running on IIS < 6 with CGI-PHP
if( isset($_SERVER['SERVER_SOFTWARE']) && isset($_SERVER['GATEWAY_INTERFACE']) &&
(strpos($_SERVER['GATEWAY_INTERFACE'],'CGI') !== false) &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment