diff options
author | Anika Henke <anika@selfthinker.org> | 2010-06-26 13:58:21 +0100 |
---|---|---|
committer | Anika Henke <anika@selfthinker.org> | 2010-06-26 13:58:21 +0100 |
commit | c9f1352e1c9466db1280be9b85f77ef0da6f86f1 (patch) | |
tree | 394a90ef919effa9282d45580850e11cb622179f /inc/common.php | |
parent | 2b2693ccbd870382d9b02623a4bffa6849cf70d4 (diff) | |
parent | f338aa804b93f9b32cb861ab64827eae545f6725 (diff) | |
download | rpg-c9f1352e1c9466db1280be9b85f77ef0da6f86f1.tar.gz rpg-c9f1352e1c9466db1280be9b85f77ef0da6f86f1.tar.bz2 |
Merge branch 'master' of github.com:splitbrain/dokuwiki
Diffstat (limited to 'inc/common.php')
-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) && |