mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
FIX Respect escaping rules on readonly fields in CMS history view
Avoids showing unescaped HTML on fields which didn't allow it otherwise, e.g. TextField. This also fixes problems with SiteTree->ExtraMeta which got evaluated within the CMS. If this section contains any JavaScript it gets executed and can disrupt CMS operation.
This commit is contained in:
parent
1525684e68
commit
97fbfd3f12
@ -113,11 +113,6 @@ class CMSPageHistoryController extends CMSMain {
|
||||
$fields = $fields->makeReadonly();
|
||||
$navField->setAllowHTML(true);
|
||||
|
||||
foreach($fields->dataFields() as $field) {
|
||||
$field->dontEscape = true;
|
||||
$field->reserveNL = true;
|
||||
}
|
||||
|
||||
if($compareID) {
|
||||
$link = Controller::join_links(
|
||||
$this->Link('show'),
|
||||
|
Loading…
Reference in New Issue
Block a user