Index: lib/ezutils/classes/ezsys.php
===================================================================
--- lib/ezutils/classes/ezsys.php	(revision 23690)
+++ lib/ezutils/classes/ezsys.php	(working copy)
@@ -583,8 +583,9 @@
     */
     static function hostname()
     {
-        $retVal = eZSys::serverVariable( 'HTTP_X_FORWARDED_HOST', true );
-        if ( !$retVal )
+        $forwardedHosts = explode( ',', eZSys::serverVariable( 'HTTP_X_FORWARDED_HOST', true ) );
+        $retVal = $forwardedHosts[0]; // explode() will return at least one array element, even if the delimiter is not found in the string.
+        if ( !$retVal or trim( $retVal ) == '' )
         {
             $retVal = eZSys::serverVariable( 'HTTP_HOST' );
         }
