1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-12-12 10:45:14 +02:00

Fix: AutoDiscover issue with Outlook 2019

Fixes #2300
This commit is contained in:
eXtremeSHOK 2019-02-11 14:50:37 +02:00 committed by GitHub
parent 99a816430b
commit d3f382c558
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ header('Content-type: application/json');
if ($_GET['Protocol'] == 'ActiveSync') {
echo '{"Protocol":"ActiveSync","Url":"' . $autodiscover_config['activesync']['url'] . '"}';
}
elseif ($_GET['Protocol'] == 'AutodiscoverV1') {
elseif (($_GET['Protocol'] == 'AutodiscoverV1') || ($_GET['Protocol'] == 'Autodiscoverv1')) {
echo '{"Protocol":"AutodiscoverV1","Url":"https://' . $_SERVER['HTTP_HOST'] . '/Autodiscover/Autodiscover.xml"}';
}
else {