Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 74280107481f6b5810c8afacd457ab43edb673ab 1 parent 3ba6e70
@chillu chillu authored sminnee committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  code/sitefeatures/PageCommentInterface.php
View
3  code/sitefeatures/PageCommentInterface.php
@@ -254,7 +254,8 @@ function CommentRssLink() {
*/
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);
}
}

0 comments on commit 7428010

Please sign in to comment.
Something went wrong with that request. Please try again.