diff options
-rw-r--r-- | inc/common.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/inc/common.php b/inc/common.php index 25d743e0b..1db362f08 100644 --- a/inc/common.php +++ b/inc/common.php @@ -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) && |