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:
Ingo Schommer 2010-04-12 03:21:00 +00:00
parent ea51802fec
commit 89176afbc4
2 changed files with 3 additions and 3 deletions

View File

@ -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
); );

View File

@ -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);
} }
/** /**