(c)2003-2009 by Francois PLANQUE - http://fplanque.net/. Parts of this file are copyright (c)2004-2005 by Daniel HAHLER - http://thequod.de/contact. Parts of this file are copyright (c)2004 by Vegar BERG GULDAL - http://funky-m.com/. Parts of this file are copyright (c)2005 by The University of North Carolina at Charlotte as contributed by Jason Edgecombe http://tst.uncc.edu/.
Note: Letting the database do the LIKE %% match is a little faster than doing in it PHP, not to mention the incredibly long overhead of preloading the list into PHP
Parameters:
$haystack:
API Tags:
Return:
blacklisted keyword found or false if no spam detected
Information Tags:
Todo:
dh> IMHO this method is too generic used! It gets used for:
comment author name
comment/message author email
comment content
message (email) content
validate_url
..and validates all this against the antispam blacklist! We should rather differentiate here more and make it pluggable!