浏览代码

Merge pull request #1070 from extremeshok/patch-8

BugFix: Outlook 2016 not using EAS
André Peters 7 年之前
父节点
当前提交
ea7183e298
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      data/web/autodiscover.php

+ 1 - 1
data/web/autodiscover.php

@@ -21,7 +21,7 @@ if (strpos($data, 'autodiscover/outlook/responseschema') !== false) {
     // Office for macOS does not support EAS
     strpos($_SERVER['HTTP_USER_AGENT'], 'Mac') === false &&
     // 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';
   }