BUG: Broken links in the 'Dependent pages' tab

The double quotes in links href is 'escaped' even though the surrounding quotes are single quotes
This commit is contained in:
Stig Lindqvist 2014-06-13 17:48:43 +12:00
parent 28043317bb
commit 0f74d8c004

View File

@ -1830,14 +1830,14 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
->setFieldFormatting(array(
'Title' => function($value, &$item) {
return sprintf(
'<a href=\"admin/pages/edit/show/%d\">%s</a>',
'<a href="admin/pages/edit/show/%d">%s</a>',
(int)$item->ID,
Convert::raw2xml($item->Title)
);
},
'AbsoluteLink' => function($value, &$item) {
return sprintf(
'<a href=\"%s\">%s</a>',
'<a href="%s">%s</a>',
Convert::raw2xml($value),
Convert::raw2xml($value)
);