From 40fa248e31e8631e312f8b577bf80982f551ab6d Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Thu, 12 Aug 2021 11:20:10 +0100 Subject: [PATCH] added strtolower for page name so I can remove uppercase variances of the page url --- src/core/init/responder.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/init/responder.php b/src/core/init/responder.php index 44da67a..6035a85 100644 --- a/src/core/init/responder.php +++ b/src/core/init/responder.php @@ -37,7 +37,7 @@ class Responder { private function get_response(){ $resp = false; // Handle the requested URL, using as many known autoconfiguration urls as possible - switch (Core::$CurrentPage){ + switch (strtolower(Core::$CurrentPage)){ case "get/test": $resp = $this->dummy_response(); break; @@ -49,11 +49,9 @@ class Responder { $resp = $this->moz_auto_config(); break; case "autodiscover/autodiscover.xml": - case "Autodiscover/Autodiscover.xml": $resp = $this->ms_autodiscover(); break; case "autodiscover/autodiscover.json": - case "Autodiscover/Autodiscover.json": $resp = $this->ms_autodiscover_json(); break; case "none":