Skip to content

Commit

Permalink
Remove IE6 workaround for redirects with hashes
Browse files Browse the repository at this point in the history
We no longer support IE6, so hashes in URLs no longer need to be
protected when redirecting.
  • Loading branch information
splitbrain committed Jan 7, 2015
1 parent 79e7937 commit 326dd43
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions inc/common.php
Expand Up @@ -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) &&
Expand Down

0 comments on commit 326dd43

Please sign in to comment.