Fixed RSSFromParent bug
This commit is contained in:
parent
cb367a8020
commit
d5b79ae217
2 changed files with 32 additions and 12 deletions
|
|
@ -113,8 +113,9 @@ sub www_view {
|
|||
$subvar->{pubDate} = _escapeXml($self->session->datetime->epochToMail($item->get('dateUpdated')));
|
||||
} elsif (ref $item eq 'HASH') {
|
||||
foreach my $key (keys %$item) {
|
||||
my $value = $item->{$key};
|
||||
$subvar->{$key} = (ref $value eq 'ARRAY')? join($,, @$value) : _escapeXml($value);
|
||||
### This does not do any XML escaping. A way must be found to
|
||||
# recursively escape the entire data structure.
|
||||
$subvar->{$key} = $item->{$key};
|
||||
}
|
||||
} else {
|
||||
$self->session->errorHandler->error("Don't know what to do with this RSS item: $item");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue