Index: config_defaults_inc.php
===================================================================
--- config_defaults_inc.php	(revision 5670)
+++ config_defaults_inc.php	(working copy)
@@ -85,7 +85,12 @@
 		}
 
 		if ( isset( $_SERVER['HTTP_X_FORWARDED_HOST'] ) ) { // Support ProxyPass
-			$t_host = $_SERVER['HTTP_X_FORWARDED_HOST'];
+			$host_delim = strpos( $_SERVER['HTTP_X_FORWARDED_HOST'], "," );
+			if( $host_delim === false ) {
+				$t_host = $_SERVER['HTTP_X_FORWARDED_HOST'];
+			} else {
+				$t_host = substr( $_SERVER['HTTP_X_FORWARDED_HOST'], 0, $host_delim);
+			}
 		} else if ( isset( $_SERVER['HTTP_HOST'] ) ) {
 			$t_host = $_SERVER['HTTP_HOST'];
 		} else if ( isset( $_SERVER['SERVER_NAME'] ) ) {
