summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-04-22 12:05:19 +0200
committerAndreas Gohr <andi@splitbrain.org>2007-04-22 12:05:19 +0200
commit6e983f2a6eaf9633572e3759548949bd111aafe7 (patch)
tree5367f6589749b5fea3bb67e4a33df446ad777fba /inc/common.php
parentb3510079a587393a3429d965de538bca9dd66ca7 (diff)
downloadrpg-6e983f2a6eaf9633572e3759548949bd111aafe7.tar.gz
rpg-6e983f2a6eaf9633572e3759548949bd111aafe7.tar.bz2
don't capture blocked words in spam check
In the checkwordblock check, the blocked word isn't used, so there is no need to capture it. This might improve the spam check speed (untested). See http://forum.dokuwiki.org/thread/752 darcs-hash:20070422100519-7ad00-61e364816942afdd0f714a703f15ac75c838fccb.gz
Diffstat (limited to 'inc/common.php')
-rw-r--r--inc/common.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php
index cbca47802..8e7cfa54f 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -476,7 +476,7 @@ function checkwordblock(){
if(empty($block)) continue;
$re[] = $block;
}
- if(preg_match('#('.join('|',$re).')#si',$text, $match=array())) {
+ if(preg_match('#('.join('|',$re).')#si',$text)) {
return true;
}
}