Skip to content

Commit

Permalink
Fix case-insensitive comparison or eas protocol
Browse files Browse the repository at this point in the history
Fixes detecting the autodiscover json endpoint.
  • Loading branch information
mrubinsk committed Sep 17, 2022
1 parent 71f5128 commit d222324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Horde/Core/ActiveSync/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -2617,7 +2617,7 @@ public function autoDiscover($params = array(), $version = 1)
if ($version == 2) {
if (Horde_String::lower($params['protocol']) == 'autodiscoverv1') {
$params['url'] = $url['scheme'] . '://' . $url['host'] . '/Autodiscover/Autodiscover.xml';
} else if (Horde_String::lower($params['protocol'] == 'activesync')) {
} else if (Horde_String::lower($params['protocol']) == 'activesync') {
$params['url'] = $url['scheme'] . '://' . $url['host'] . '/Microsoft-Server-ActiveSync';
}
return $params;
Expand Down

0 comments on commit d222324

Please sign in to comment.