fixed bug 691414
This commit is contained in:
parent
2768d2e1ea
commit
52a5cdfd0d
1 changed files with 2 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ package WebGUI::Wobject::SyndicatedContent;
|
||||||
# http://www.plainblack.com info@plainblack.com
|
# http://www.plainblack.com info@plainblack.com
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
|
use HTML::Entities;
|
||||||
use strict;
|
use strict;
|
||||||
use Tie::CPHash;
|
use Tie::CPHash;
|
||||||
use WebGUI::Cache;
|
use WebGUI::Cache;
|
||||||
|
|
@ -85,6 +86,7 @@ sub www_view {
|
||||||
unless (defined $rssFile) {
|
unless (defined $rssFile) {
|
||||||
$rssFile = $cache->setByHTTP($_[0]->get("rssUrl"),3600);
|
$rssFile = $cache->setByHTTP($_[0]->get("rssUrl"),3600);
|
||||||
}
|
}
|
||||||
|
$rssFile =~ s#(<title>)(.*?)(</title>)#$1.encode_entities($2).$3#ges;
|
||||||
eval{parseXML(\%rss, \$rssFile)};
|
eval{parseXML(\%rss, \$rssFile)};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
WebGUI::ErrorHandler::warn($_[0]->get("rssUrl")." ".$@);
|
WebGUI::ErrorHandler::warn($_[0]->get("rssUrl")." ".$@);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue