Skip to content

Commit

Permalink
Collection Class might be sent in OPTIONS when EAS > 12.1.
Browse files Browse the repository at this point in the history
Fixes sync for clients that attempt SMS sync. Possible fix
for Bug: 12281
  • Loading branch information
mrubinsk committed May 30, 2013
1 parent e75323b commit 7493e8c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions framework/ActiveSync/lib/Horde/ActiveSync/Request/Sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,17 @@ public function _parseSyncOptions(&$collection)
exit;
}
}

// EAS > 12.1 the Collection Class can be part of OPTIONS.
if ($this->_device->version > Horde_ActiveSync::VERSION_TWELVEONE &&
$this->_decoder->getElementStartTag(Horde_ActiveSync::SYNC_FOLDERTYPE)) {
$collection['class'] = $this->_decoder->getElementContent();
if (!$this->_decoder->getElementEndTag()) {
$this->_statusCode = self::STATUS_PROTERROR;
$this->_handleError($collection);
exit;
}
}
if ($this->_decoder->getElementStartTag(Horde_ActiveSync::SYNC_TRUNCATION)) {
$collection['truncation'] = $this->_decoder->getElementContent();
if (!$this->_decoder->getElementEndTag()) {
Expand Down

0 comments on commit 7493e8c

Please sign in to comment.