From e0086ca277bafe4f068079a4655a5601914a6f03 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Wed, 12 Jun 2013 21:45:37 +0200
Subject: [PATCH] check for spam in summary as well, added common spam summary

---
 conf/wordblock.conf | 1 +
 inc/common.php      | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/conf/wordblock.conf b/conf/wordblock.conf
index fe451f278..fc939a4d4 100644
--- a/conf/wordblock.conf
+++ b/conf/wordblock.conf
@@ -30,3 +30,4 @@ https?:\/\/(\S*?)(2-pay-secure|911essay|academia-research|anypapers|applicatione
 flatsinmumbai\.co\.in
 https?:\/\/(\S*?)penny-?stock
 mattressreview\.biz
+(just|simply) (my|a) profile (site|webpage|page)
diff --git a/inc/common.php b/inc/common.php
index 59ceb0c0d..760a9f6dc 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -557,12 +557,13 @@ function checkwordblock($text = '') {
     global $TEXT;
     global $PRE;
     global $SUF;
+    global $SUM;
     global $conf;
     global $INFO;
 
     if(!$conf['usewordblock']) return false;
 
-    if(!$text) $text = "$PRE $TEXT $SUF";
+    if(!$text) $text = "$PRE $TEXT $SUF $SUM";
 
     // we prepare the text a tiny bit to prevent spammers circumventing URL checks
     $text = preg_replace('!(\b)(www\.[\w.:?\-;,]+?\.[\w.:?\-;,]+?[\w/\#~:.?+=&%@\!\-.:?\-;,]+?)([.:?\-;,]*[^\w/\#~:.?+=&%@\!\-.:?\-;,])!i', '\1http://\2 \2\3', $text);
-- 
GitLab