[wp-hackers] Proposed patch for spam problem

Kitty kitty at mookitty.co.uk
Mon Nov 1 22:55:10 UTC 2004


On Mon, 2004-11-01 at 10:51, David Clark wrote:
> my solution is to change that check to:
> 	if ( (count(explode('href', apply_filters('comment_text', $comment)))  
> - 1) >= get_settings('comment_max_links') )
> 		return false; // Check # of external links
> 
> is there a downside to this approach?

I think it's worthwhile. it's an easy way of avoiding a bunch of
regex'ing added to check_comment. 
-- 
Cheers,		     Blog: http://blog.mookitty.co.uk
Kitty		     PC Repair: http://www.girltech.net
		     WP Plugins: http://mookitty.co.uk/devblog
Support proactive security: http://www.openbsd.org/orders.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : /pipermail/hackers_wordpress.org/attachments/20041101/c72901fa/attachment.bin


More information about the hackers mailing list