From 74280107481f6b5810c8afacd457ab43edb673ab Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 25 Nov 2010 19:12:09 +0000 Subject: [PATCH] BUGFIX Added SecurityToken to PageCommentInterface->DeleteAllLink() (fixes #6223, thanks Pigeon) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@114195 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/sitefeatures/PageCommentInterface.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/sitefeatures/PageCommentInterface.php b/code/sitefeatures/PageCommentInterface.php index ab769c88..9d996dd0 100755 --- a/code/sitefeatures/PageCommentInterface.php +++ b/code/sitefeatures/PageCommentInterface.php @@ -254,7 +254,8 @@ class PageCommentInterface extends RequestHandler { */ function DeleteAllLink() { if(Permission::check('CMS_ACCESS_CommentAdmin')) { - return Director::absoluteBaseURL() . "PageComment/deleteallcomments?pageid=" . $this->page->ID; + $token = SecurityToken::inst(); + return $token->addToUrl(Director::absoluteBaseURL() . "PageComment/deleteallcomments?pageid=" . $this->page->ID); } }