Skip to content

Commit

Permalink
Fix #9693: Handle multi-proxy forwarding.
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5673 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
amyreese committed Oct 14, 2008
1 parent ae996b4 commit 5b0afab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config_defaults_inc.php
Expand Up @@ -85,7 +85,8 @@
}

if ( isset( $_SERVER['HTTP_X_FORWARDED_HOST'] ) ) { // Support ProxyPass
$t_host = $_SERVER['HTTP_X_FORWARDED_HOST'];
$t_hosts = split( ',', $_SERVER['HTTP_X_FORWARDED_HOST'] );
$t_host = $t_hosts[0];
} else if ( isset( $_SERVER['HTTP_HOST'] ) ) {
$t_host = $_SERVER['HTTP_HOST'];
} else if ( isset( $_SERVER['SERVER_NAME'] ) ) {
Expand Down

0 comments on commit 5b0afab

Please sign in to comment.