Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRD WebDesign <github@rdwebdesign.com.br>2022-09-30 23:13:08 +0300
committerRD WebDesign <github@rdwebdesign.com.br>2022-09-30 23:13:08 +0300
commitd48c55713450739073cd19d738031ccd03bb7175 (patch)
tree4bb29b21291eb4e073aafa1f07c8c3f0743f3e3f
parent1b0b0ca44515cf65c288af06032b8608752ee7c2 (diff)
Fix Deepsource warning message for index.php filefix/indexphp
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
-rw-r--r--advanced/index.php7
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();
?>