From 48c317a3a2ea6db6847cac5b8f7da1bfee5477d4 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Thu, 18 Oct 2007 04:49:59 +0000 Subject: [PATCH] #1472 - PageComment Spam is shown in RSS git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.1.1@43584 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/sitefeatures/PageComment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/sitefeatures/PageComment.php b/code/sitefeatures/PageComment.php index 330b6dc1..14fdce92 100755 --- a/code/sitefeatures/PageComment.php +++ b/code/sitefeatures/PageComment.php @@ -164,7 +164,7 @@ class PageComment extends DataObject { } function rss() { $parentcheck = isset($_REQUEST['pageid']) ? "ParentID = {$_REQUEST['pageid']}" : "ParentID > 0"; - $comments = DataObject::get("PageComment", $parentcheck, "Created DESC", "", 10); + $comments = DataObject::get("PageComment", "$parentcheck AND IsSpam=0", "Created DESC", "", 10); if(!isset($comments)) { $comments = new DataObjectSet(); }