Merge pull request #1070 from extremeshok/patch-8

BugFix: Outlook 2016 not using EAS
master
André Peters 2018-02-20 08:26:49 +01:00 committed by GitHub
commit ea7183e298
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ if (strpos($data, 'autodiscover/outlook/responseschema') !== false) {
// Office for macOS does not support EAS // Office for macOS does not support EAS
strpos($_SERVER['HTTP_USER_AGENT'], 'Mac') === false && strpos($_SERVER['HTTP_USER_AGENT'], 'Mac') === false &&
// Outlook 2013 (version 15) or higher // Outlook 2013 (version 15) or higher
preg_match('/(Outlook|Office).+15\./', $_SERVER['HTTP_USER_AGENT']) preg_match('/(Outlook|Office).+1[5-9]\./', $_SERVER['HTTP_USER_AGENT'])
) { ) {
$autodiscover_config['autodiscoverType'] = 'activesync'; $autodiscover_config['autodiscoverType'] = 'activesync';
} }