mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Don't link record in GridField form message
This is no longer allows through Form->sessionMessage() to avoid XSS.
This commit is contained in:
parent
a68e0ba365
commit
bda56eb9b0
@ -412,9 +412,11 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler {
|
||||
|
||||
// TODO Save this item into the given relationship
|
||||
|
||||
$link = '<a href="' . $this->Link('edit') . '">"'
|
||||
. htmlspecialchars($this->record->Title, ENT_QUOTES)
|
||||
. '"</a>';
|
||||
// TODO Allow HTML in form messages
|
||||
// $link = '<a href="' . $this->Link('edit') . '">"'
|
||||
// . htmlspecialchars($this->record->Title, ENT_QUOTES)
|
||||
// . '"</a>';
|
||||
$link = '"' . $this->record->Title . '"';
|
||||
$message = _t(
|
||||
'GridFieldDetailForm.Saved',
|
||||
'Saved {name} {link}',
|
||||
|
Loading…
x
Reference in New Issue
Block a user