Fix typo causing error on IPv6 login

This commit is contained in:
ppascher 2022-01-28 19:35:24 +01:00 committed by Franco Fichtner
parent 317b3601d0
commit 130ef3a6e7

View File

@ -71,7 +71,7 @@ function check_security_dns_rebind()
$http_host_port = explode("]", $_SERVER['HTTP_HOST']);
/* v6 address has more parts, drop the last part */
if (count($http_host_port) > 1) {
array_pop($hfttp_host_port);
array_pop($http_host_port);
$http_host = str_replace(["[", "]"], "", implode(":", $http_host_port));
} else {
$http_host = str_replace(["[", "]"], "", implode(":", $http_host_port));