mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Removed XSS holes (from r94823) (from r96773)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102402 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ea51802fec
commit
89176afbc4
@ -832,7 +832,7 @@ class ComplexTableField_ItemRequest extends RequestHandler {
|
|||||||
$message = sprintf(
|
$message = sprintf(
|
||||||
_t('ComplexTableField.SUCCESSEDIT', 'Saved %s %s %s'),
|
_t('ComplexTableField.SUCCESSEDIT', 'Saved %s %s %s'),
|
||||||
$dataObject->singular_name(),
|
$dataObject->singular_name(),
|
||||||
'<a href="' . $this->Link() . '">"' . $dataObject->Title . '"</a>',
|
'<a href="' . $this->Link() . '">"' . htmlspecialchars($dataObject->Title, ENT_QUOTES) . '"</a>',
|
||||||
$closeLink
|
$closeLink
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -324,7 +324,7 @@ class Group extends DataObject {
|
|||||||
|
|
||||||
public function getTreeTitle() {
|
public function getTreeTitle() {
|
||||||
if($this->hasMethod('alternateTreeTitle')) return $this->alternateTreeTitle();
|
if($this->hasMethod('alternateTreeTitle')) return $this->alternateTreeTitle();
|
||||||
else return $this->Title;
|
else return htmlspecialchars($this->Title, ENT_QUOTES);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user