diff options
author | Adam Warner <me@adamwarner.co.uk> | 2022-10-02 00:57:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-02 00:57:32 +0300 |
commit | 997a771dc801d13a28d00eddc3ae86903137293b (patch) | |
tree | 99d255da80fb0e19e25aa0825b1624c6a3a3652d | |
parent | 77f0012f6bee525a32de44397aa9c68efba90756 (diff) | |
parent | d48c55713450739073cd19d738031ccd03bb7175 (diff) |
Fix Deepsource.io warning message for index.php file (#4953)
-rw-r--r-- | advanced/index.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/advanced/index.php b/advanced/index.php index 9a2b19e6..f3f2ce1c 100644 --- a/advanced/index.php +++ b/advanced/index.php @@ -29,7 +29,8 @@ if (!empty($_SERVER["FQDN"])) { if ($serverName === "pi.hole" || (!empty($_SERVER["VIRTUAL_HOST"]) && $serverName === $_SERVER["VIRTUAL_HOST"])) { // Redirect to Web Interface - exit(header("Location: /admin")); + header("Location: /admin"); + exit(); } elseif (filter_var($serverName, FILTER_VALIDATE_IP) || in_array($serverName, $authorizedHosts)) { // When directly browsing via IP or authorized hostname // Render splash/landing page based off presence of $landPage file @@ -75,6 +76,6 @@ EOT; exit($splashPage); } -exit(header("HTTP/1.1 404 Not Found")); - +header("HTTP/1.1 404 Not Found"); +exit(); ?> |