Remove [ ] from SERVER_NAME variable (#405)

This commit is contained in:
DL6ER
2017-02-27 22:17:46 +01:00
committed by GitHub
parent 110ab455b6
commit f328595d6d

View File

@@ -30,7 +30,7 @@ function check_cors() {
$AUTHORIZED_HOSTNAMES = array(
$ipv4,
$ipv6,
$_SERVER["SERVER_NAME"],
str_replace(array("[","]"), array("",""), $_SERVER["SERVER_NAME"]),
"pi.hole",
"localhost"
);