fixed: Security issue in CS RSS feeds

This commit is contained in:
Doug Bell 2008-06-13 20:16:48 +00:00
parent 10060cb06c
commit ea3d3e9e9c
2 changed files with 2 additions and 0 deletions

View file

@ -96,6 +96,7 @@ sub www_view {
my $self = shift;
return '' unless $self->session->asset->getId eq $self->getId;
return '' unless $self->getParent->isa('WebGUI::Asset::RSSCapable');
return '' unless $self->getParent->canView; # Go to parent for auth
my $parent = $self->getParent;
my $template = WebGUI::Asset::Template->new($self->session, $parent->get('rssCapableRssTemplateId'));
$template->prepare;