mirror of
https://github.com/pi-hole/web.git
synced 2026-04-26 19:55:15 +01:00
Remove [ ] from SERVER_NAME variable (#405)
This commit is contained in:
@@ -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"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user