From d29adbae0205ff6d127d430cd718323176e66f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Peters?= Date: Mon, 11 Feb 2019 13:52:24 +0100 Subject: [PATCH] Update autodiscover-json.php --- data/web/autodiscover-json.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/web/autodiscover-json.php b/data/web/autodiscover-json.php index 1bc5b6c5..c8bb678e 100644 --- a/data/web/autodiscover-json.php +++ b/data/web/autodiscover-json.php @@ -8,10 +8,10 @@ if(file_exists('inc/vars.local.inc.php')) { $autodiscover_config = array_merge($default_autodiscover_config, $autodiscover_config); header('Content-type: application/json'); -if ($_GET['Protocol'] == 'ActiveSync') { +if (strtolower($_GET['Protocol']) == 'activesync') { echo '{"Protocol":"ActiveSync","Url":"' . $autodiscover_config['activesync']['url'] . '"}'; } -elseif (($_GET['Protocol'] == 'AutodiscoverV1') || ($_GET['Protocol'] == 'Autodiscoverv1')) { +elseif (strtolower($_GET['Protocol']) == 'autodiscoverv1') { echo '{"Protocol":"AutodiscoverV1","Url":"https://' . $_SERVER['HTTP_HOST'] . '/Autodiscover/Autodiscover.xml"}'; } else {