diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-06-12 21:45:37 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-06-12 21:45:37 +0200 |
commit | e0086ca277bafe4f068079a4655a5601914a6f03 (patch) | |
tree | 1abc67733b74c10ff8a3d70ed44d0d6afa0c3fe7 /inc/common.php | |
parent | 62765857f84626449d6c53b1a46c462a37e5083a (diff) | |
download | rpg-e0086ca277bafe4f068079a4655a5601914a6f03.tar.gz rpg-e0086ca277bafe4f068079a4655a5601914a6f03.tar.bz2 |
check for spam in summary as well, added common spam summary
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 3 |
1 files changed, 2 insertions, 1 deletions
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); |