Permalink
Browse files

Don't count emoticons toward link total. Props tott. fixes #8627 #782…

…1 for 2.7

git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent a91fef2 commit 3458ed9d37cf09f589bb22bd48492d983a5660d5 ryan committed Jan 28, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 wp-includes/comment.php
View
2 wp-includes/comment.php
@@ -45,7 +45,7 @@ function check_comment($author, $email, $url, $comment, $user_ip, $user_agent, $
if ( 1 == get_option('comment_moderation') )
return false; // If moderation is set to manual
- if ( get_option('comment_max_links') && preg_match_all("|(href\t*?=\t*?['\"]?)?(https?:)?//|i", apply_filters('comment_text', $comment), $out) >= get_option('comment_max_links') )
+ if ( get_option('comment_max_links') && preg_match_all("/<[Aa][^>]*[Hh][Rr][Ee][Ff]=['\"]([^\"'>]+)[^>]*>/", apply_filters('comment_text',$comment), $out) >= get_option('comment_max_links') )
return false; // Check # of external links
$mod_keys = trim(get_option('moderation_keys'));

0 comments on commit 3458ed9

Please sign in to comment.