Fix EZP-22446: redirect fails due to port eZSys::hostname()

JIRA: https://jira.ez.no/browse/EZP-22446

When using port in url, the host check by AllowedRedirectHosts will fail as the port is included in eZSys::hostname()

This fixes it so that only the actual hostname is returned.