[Web] Fix Autodiscover issue with Outlook 2019, fixes #2300

master
André Peters 2019-02-11 13:53:00 +01:00 committed by GitHub
commit 96c2b92455
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -8,10 +8,10 @@ if(file_exists('inc/vars.local.inc.php')) {
$autodiscover_config = array_merge($default_autodiscover_config, $autodiscover_config); $autodiscover_config = array_merge($default_autodiscover_config, $autodiscover_config);
header('Content-type: application/json'); header('Content-type: application/json');
if ($_GET['Protocol'] == 'ActiveSync') { if (strtolower($_GET['Protocol']) == 'activesync') {
echo '{"Protocol":"ActiveSync","Url":"' . $autodiscover_config['activesync']['url'] . '"}'; echo '{"Protocol":"ActiveSync","Url":"' . $autodiscover_config['activesync']['url'] . '"}';
} }
elseif ($_GET['Protocol'] == 'AutodiscoverV1') { elseif (strtolower($_GET['Protocol']) == 'autodiscoverv1') {
echo '{"Protocol":"AutodiscoverV1","Url":"https://' . $_SERVER['HTTP_HOST'] . '/Autodiscover/Autodiscover.xml"}'; echo '{"Protocol":"AutodiscoverV1","Url":"https://' . $_SERVER['HTTP_HOST'] . '/Autodiscover/Autodiscover.xml"}';
} }
else { else {