Forward port XML encoding for template based RSS feeds in the Gallery.
This commit is contained in:
parent
55e0feb687
commit
3b577599f5
6 changed files with 29 additions and 24 deletions
|
|
@ -18,6 +18,7 @@ use Tie::IxHash;
|
|||
use WebGUI::International;
|
||||
use WebGUI::Utility;
|
||||
use XML::Simple;
|
||||
use WebGUI::HTML;
|
||||
|
||||
=head1 NAME
|
||||
|
||||
|
|
@ -1212,7 +1213,12 @@ sub www_listAlbumsRss {
|
|||
for my $key ( qw( url ) ) {
|
||||
$assetVar->{ $key } = $self->session->url->getSiteURL . $assetVar->{ $key };
|
||||
}
|
||||
|
||||
|
||||
# Encode XML entities
|
||||
for my $key ( qw( title description synopsis gallery_title gallery_menuTitle ) ) {
|
||||
$assetVar->{ $key } = WebGUI::HTML::filter($assetVar->{$key}, 'xml');
|
||||
}
|
||||
|
||||
# Additional vars for RSS
|
||||
$assetVar->{ rssDate }
|
||||
= $session->datetime->epochToMail( $assetVar->{ creationDate } );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue