Track and check user agent for comments.

git-svn-id: https://develop.svn.wordpress.org/trunk@1603 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2004-09-05 01:50:39 +00:00
parent 0e365db45d
commit 94c29fd51e
3 changed files with 12 additions and 6 deletions
+1
View File
@@ -1493,6 +1493,7 @@ function check_comment($author, $email, $url, $comment, $user_ip) {
if ( preg_match($pattern, $url) ) return false;
if ( preg_match($pattern, $comment) ) return false;
if ( preg_match($pattern, $user_ip) ) return false;
if ( preg_match($pattern, $useg_agent) ) return false;
}
return true;