Commit 38c80206 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1326 Support empty GetChanges container.

This case is then interpreted as the client requesting changes.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 3ccbfd83
...@@ -233,10 +233,9 @@ class Sync extends RequestProcessor { ...@@ -233,10 +233,9 @@ class Sync extends RequestProcessor {
$sc->AddParameter($spa, "getchanges", true); $sc->AddParameter($spa, "getchanges", true);
if (($gc = self::$decoder->getElementContent()) !== false) { if (($gc = self::$decoder->getElementContent()) !== false) {
$sc->AddParameter($spa, "getchanges", $gc); $sc->AddParameter($spa, "getchanges", $gc);
if(!self::$decoder->getElementEndTag()) {
return false;
}
} }
// read the endtag if it's there, but don't fail if it isn't
self::$decoder->getElementEndTag();
} }
if(self::$decoder->getElementStartTag(SYNC_WINDOWSIZE)) { if(self::$decoder->getElementStartTag(SYNC_WINDOWSIZE)) {
......
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