Commit 4fb62a00 authored by skummer's avatar skummer

ZP-136 #time 20m

- fixed: empty synckey tag is interpreted as synckey 0 

git-svn-id: https://z-push.org/svn/z-push/trunk@1356 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent c89f593c
......@@ -95,10 +95,15 @@ class Sync extends RequestProcessor {
}
// SyncKey
if(!self::$decoder->getElementStartTag(SYNC_SYNCKEY))
return false;
$synckey = self::$decoder->getElementContent();
if(!self::$decoder->getElementEndTag())
if(self::$decoder->getElementStartTag(SYNC_SYNCKEY)) {
$synckey = "0";
if (($synckey = self::$decoder->getElementContent()) !== false) {
if(!self::$decoder->getElementEndTag()) {
return false;
}
}
}
else
return false;
// FolderId
......
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