Commit a58dad57 authored by skummer's avatar skummer

ZP-168 partial #comment read comma and semicolon separated values correctly #time 30m

git-svn-id: https://z-push.org/svn/z-push/trunk@1438 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 4983c9a3
......@@ -172,6 +172,13 @@ class Streamer implements Serializable {
if(!$decoder->getElementEndTag())
return false;
}
// explode comma or semicolon strings into arrays
else if($map[self::STREAMER_TYPE] == self::STREAMER_TYPE_COMMA_SEPARATED || $map[self::STREAMER_TYPE] == self::STREAMER_TYPE_SEMICOLON_SEPARATED) {
$glue = ($map[self::STREAMER_TYPE] == self::STREAMER_TYPE_COMMA_SEPARATED)?", ":"; ";
$decoded = explode($glue, $decoder->getElementContent());
if(!$decoder->getElementEndTag())
return false;
}
else {
$subdecoder = new $map[self::STREAMER_TYPE]();
if($subdecoder->Decode($decoder) === false)
......
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