Fix for getServerHost() function incorrectly parsing IPv6 addresses as hostname.
Fix for getServerHost() function incorrectly parsing IPv6 addresses as hostname.

sgomez/saml2,ArtemTeleshev/php-saml2,cb8/saml2,sitya/saml2,simplesamlphp/saml2,madmatt/saml2,newmen/saml2