From 4a379d05407d8450940f31686814a0dd1e8b6282 Mon Sep 17 00:00:00 2001 From: Michael Kuron Date: Sun, 18 Jun 2017 14:36:27 +0200 Subject: [PATCH] Satisfy Microsoft Remote Connectivity Analyzer --- data/web/autodiscover.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/web/autodiscover.php b/data/web/autodiscover.php index fdef02a59..422f84261 100644 --- a/data/web/autodiscover.php +++ b/data/web/autodiscover.php @@ -35,7 +35,8 @@ if (strpos($data, 'autodiscover/outlook/responseschema')) { // desktop client if ($config['useEASforOutlook'] == 'yes' && strpos($_SERVER['HTTP_USER_AGENT'], 'Outlook') !== FALSE && // Outlook strpos($_SERVER['HTTP_USER_AGENT'], 'Windows NT') !== FALSE && // Windows - preg_match('/Outlook (1[5-9]\.|[2-9]|1[0-9][0-9])/', $_SERVER['HTTP_USER_AGENT']) // Outlook 2013 (version 15) or higher + preg_match('/Outlook (1[5-9]\.|[2-9]|1[0-9][0-9])/', $_SERVER['HTTP_USER_AGENT']) && // Outlook 2013 (version 15) or higher + strpos($_SERVER['HTTP_USER_AGENT'], 'MS Connectivity Analyzer') === FALSE // https://testconnectivity.microsoft.com doesn't support EAS for Outlook ) { $config['autodiscoverType'] = 'activesync'; }