Skip to content
Snippets Groups Projects
Commit e0086ca2 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

check for spam in summary as well, added common spam summary

parent 62765857
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment