mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Fixed report link escaping
This commit is contained in:
parent
daf92e6ce0
commit
92e0c410b8
@ -303,7 +303,7 @@ class SS_Report extends ViewableData {
|
||||
if(isset($info['link']) && $info['link']) {
|
||||
$fieldFormatting[$source] = function($value, &$item) {
|
||||
return sprintf(
|
||||
'<a href=\"%s\">%s</a>',
|
||||
'<a href="%s">%s</a>',
|
||||
Controller::join_links(singleton('CMSPageEditController')->Link('show'), $item->ID),
|
||||
Convert::raw2xml($value)
|
||||
);
|
||||
|
@ -12,4 +12,7 @@ Feature: View Reports
|
||||
Scenario: I can view the "Pages with no content" report
|
||||
When I follow "Pages with no content"
|
||||
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