Commit d8275ebb authored by mku's avatar mku

ZP-463 #comment Galaxy Note 3 sends empty options tag in ItemOperations #time 30m

git-svn-id: https://z-push.org/svn/z-push/trunk@1754 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 8dcb3e16
...@@ -133,6 +133,12 @@ class ItemOperations extends RequestProcessor { ...@@ -133,6 +133,12 @@ class ItemOperations extends RequestProcessor {
// Save all OPTIONS into a ContentParameters object // Save all OPTIONS into a ContentParameters object
$operation["cpo"] = new ContentParameters(); $operation["cpo"] = new ContentParameters();
while(1) { while(1) {
// Android 4.3 sends empty options tag, so we don't have to look further
$e = self::$decoder->peek();
if($e[EN_TYPE] == EN_TYPE_ENDTAG) {
break;
}
while (self::$decoder->getElementStartTag(SYNC_AIRSYNCBASE_BODYPREFERENCE)) { while (self::$decoder->getElementStartTag(SYNC_AIRSYNCBASE_BODYPREFERENCE)) {
if(self::$decoder->getElementStartTag(SYNC_AIRSYNCBASE_TYPE)) { if(self::$decoder->getElementStartTag(SYNC_AIRSYNCBASE_TYPE)) {
$bptype = self::$decoder->getElementContent(); $bptype = self::$decoder->getElementContent();
......
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