Commit a8b1e950 authored by mku's avatar mku

ZP-451 #comment Mobile sending a folder type receives wrong ping information #time 15m

git-svn-id: https://z-push.org/svn/z-push/trunk@1737 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 6d393422
...@@ -260,6 +260,7 @@ class SyncParameters extends StateObject { ...@@ -260,6 +260,7 @@ class SyncParameters extends StateObject {
public function UseCPO($options = self::DEFAULTOPTIONS) { public function UseCPO($options = self::DEFAULTOPTIONS) {
$options = strtoupper($options); $options = strtoupper($options);
$this->isValidType($options); $this->isValidType($options);
$options = $this->normalizeType($options);
// remove potential old default CPO if available // remove potential old default CPO if available
if (isset($this->contentParameters[self::DEFAULTOPTIONS]) && $options != self::DEFAULTOPTIONS && $options !== self::SMSOPTIONS) { if (isset($this->contentParameters[self::DEFAULTOPTIONS]) && $options != self::DEFAULTOPTIONS && $options !== self::SMSOPTIONS) {
......
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