Force absolute lookup. Props tanuki. fixes #2237
git-svn-id: https://develop.svn.wordpress.org/trunk@3433 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
41b6a1945e
commit
f8f6b07e9c
@ -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
Block a user