Force absolute lookup. Props tanuki. fixes #2237
git-svn-id: http://svn.automattic.com/wordpress/trunk@3433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3addf81bd1
commit
58029f7249
|
@ -679,7 +679,7 @@ function wp_blacklist_check($author, $email, $url, $comment, $user_ip, $user_age
|
|||
function wp_proxy_check($ipnum) {
|
||||
if ( get_option('open_proxy_check') && isset($ipnum) ) {
|
||||
$rev_ip = implode( '.', array_reverse( explode( '.', $ipnum ) ) );
|
||||
$lookup = $rev_ip . '.opm.blitzed.org';
|
||||
$lookup = $rev_ip . '.opm.blitzed.org.';
|
||||
if ( $lookup != gethostbyname( $lookup ) )
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue