From 3d48620980fdfe452c8a40a66157afc95e1acd8c Mon Sep 17 00:00:00 2001 From: andryyy Date: Tue, 14 Jul 2020 12:15:49 +0200 Subject: [PATCH] [SOGo] Disable autodiscover-json for EAS when disabled --- data/web/autodiscover-json.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/web/autodiscover-json.php b/data/web/autodiscover-json.php index c8bb678e..e1749b75 100644 --- a/data/web/autodiscover-json.php +++ b/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') {