Fixed report link escaping

This commit is contained in:
Ingo Schommer 2013-10-02 11:52:14 +02:00
parent fb9d7a595b
commit 52ab9e570a
2 changed files with 5 additions and 2 deletions

View File

@ -284,7 +284,7 @@ class SS_Report extends ViewableData {
if(isset($info['link']) && $info['link']) { if(isset($info['link']) && $info['link']) {
$fieldFormatting[$source] = function($value, &$item) { $fieldFormatting[$source] = function($value, &$item) {
return sprintf( return sprintf(
'<a href=\"%s\">%s</a>', '<a href="%s">%s</a>',
Controller::join_links(singleton('CMSPageEditController')->Link('show'), $item->ID), Controller::join_links(singleton('CMSPageEditController')->Link('show'), $item->ID),
Convert::raw2xml($value) Convert::raw2xml($value)
); );

View File

@ -13,3 +13,6 @@ Feature: View Reports
When I follow "Pages with no content" When I follow "Pages with no content"
Then I should see "Empty Page" Then I should see "Empty Page"
But I should not see "Filled Page" But I should not see "Filled Page"
When I follow "Empty Page"
Then I should see an edit page form
And the "Page name" field should contain "Empty Page"