From 326dd43a06ec0806d8771d08a0733d63090e126f Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 7 Jan 2015 10:56:28 +0100 Subject: Remove IE6 workaround for redirects with hashes We no longer support IE6, so hashes in URLs no longer need to be protected when redirecting. --- inc/common.php | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'inc') diff --git a/inc/common.php b/inc/common.php index 9b330000b..5a8b5c900 100644 --- a/inc/common.php +++ b/inc/common.php @@ -1807,17 +1807,6 @@ 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($INPUT->server->has('SERVER_SOFTWARE') && $INPUT->server->has('GATEWAY_INTERFACE') && (strpos($INPUT->server->str('GATEWAY_INTERFACE'), 'CGI') !== false) && -- cgit v1.2.3