浏览代码

[SOGo] Disable autodiscover-json for EAS when disabled

andryyy 5 年之前
父节点
当前提交
3d48620980
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      data/web/autodiscover-json.php

+ 1 - 1
data/web/autodiscover-json.php

@@ -8,7 +8,7 @@ if(file_exists('inc/vars.local.inc.php')) {
 $autodiscover_config = array_merge($default_autodiscover_config, $autodiscover_config);
 
 header('Content-type: application/json');
-if (strtolower($_GET['Protocol']) == 'activesync') {
+if (strtolower($_GET['Protocol']) == 'activesync' && getenv('SKIP_SOGO') != "y") {
   echo '{"Protocol":"ActiveSync","Url":"' . $autodiscover_config['activesync']['url'] . '"}';
 }
 elseif (strtolower($_GET['Protocol']) == 'autodiscoverv1') {