Commit ae5982ab authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #429 in ZP/z-push from feature/ZP-1099-block-outlook-connections to release/2.2

* commit '50599931':
  ZP-1099 Drop Outlook via ActiveSync connections.
parents 161fe5a8 50599931
......@@ -183,6 +183,11 @@ include_once('version.php');
header("X-Z-Push-Version: ". @constant('ZPUSH_VERSION'));
}
// don't accept connections from Outlook via ActiveSync - https://jira.z-hub.io/browse/ZP-1099
if (Request::GetDeviceType() == "WindowsOutlook") {
throw new HTTPReturnCodeException("Using Outlook via ActiveSync with Z-Push 2.2.x is not possible, please upgrade to Z-Push 2.3: https://wiki.z-hub.io/x/R4Ea", 503, null, LOGLEVEL_FATAL);
}
// announce the supported AS versions (if not already sent to device)
if (ZPush::GetDeviceManager()->AnnounceASVersion()) {
$versions = ZPush::GetSupportedProtocolVersions(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment