From c7b06663907b6e7b0502190e42ab258d5577af34 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 17 Feb 2013 23:22:02 +0100 Subject: [PATCH] BUG Escape page titles in CommentAdmin table listing --- code/CommentAdmin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/CommentAdmin.php b/code/CommentAdmin.php index 4cac3955..8742fb51 100644 --- a/code/CommentAdmin.php +++ b/code/CommentAdmin.php @@ -93,7 +93,8 @@ class CommentAdmin extends LeftAndMain { $table->setParentClass(false); $table->setFieldCasting(array( 'Created' => 'SS_Datetime->Full', - 'Comment' => array('HTMLText->LimitCharacters', 150) + 'Comment' => array('HTMLText->LimitCharacters', 150), + 'Parent.Title' => 'Text', )); $table->setPageSize(self::get_comments_per_page());