summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2010-06-26 14:16:50 +0200
committerAndreas Gohr <andi@splitbrain.org>2010-06-26 14:18:08 +0200
commitc10dcb7d61c1cabd12c41124630070c388cafbc7 (patch)
tree4cab454cc551cc191de71d023930506a35bce399 /inc/common.php
parentb038bf62450c4c0aceb9f2cf7d4e24335d6e7bdf (diff)
downloadrpg-c10dcb7d61c1cabd12c41124630070c388cafbc7.tar.gz
rpg-c10dcb7d61c1cabd12c41124630070c388cafbc7.tar.bz2
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.
Diffstat (limited to 'inc/common.php')
-rw-r--r--inc/common.php11
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) &&