added strtolower for page name so I can remove uppercase variances of the page url

This commit is contained in:
Paul Wilde 2021-08-12 11:20:10 +01:00
parent 99257788e5
commit 40fa248e31

View file

@ -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":