mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Fixed report link escaping
This commit is contained in:
parent
fb9d7a595b
commit
52ab9e570a
@ -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)
|
||||||
);
|
);
|
||||||
|
@ -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"
|
Loading…
Reference in New Issue
Block a user