Fixed a bug where entity encoding was not working.
This commit is contained in:
parent
afbcfc7d56
commit
f6b7ccd7b3
1 changed files with 2 additions and 2 deletions
|
|
@ -86,8 +86,8 @@ sub www_view {
|
|||
unless (defined $rssFile) {
|
||||
$rssFile = $cache->setByHTTP($_[0]->get("rssUrl"),3600);
|
||||
}
|
||||
$rssFile =~ s#(<title>)(.*?)(</title>)#$1.encode_entities_numeric(decode_entities($2)).$3#ges;
|
||||
$rssFile =~ s#(<description>)(.*?)(</description>)#$1.encode_entities_numeric(decode_entities($2)).$3#ges;
|
||||
$rssFile =~ s#(<title>)(.*?)(</title>)#$1.HTML::Entities::encode_entities_numeric(decode_entities($2)).$3#ges;
|
||||
$rssFile =~ s#(<description>)(.*?)(</description>)#$1.HTML::Entities::encode_entities_numeric(decode_entities($2)).$3#ges;
|
||||
eval{parseRSS(\%rss, \$rssFile)};
|
||||
if ($@) {
|
||||
WebGUI::ErrorHandler::warn($_[0]->get("rssUrl")." ".$@);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue