Update RBL site and turn open proxy check off by default. Props Nazgul. fixes #2821
git-svn-id: http://svn.automattic.com/wordpress/trunk@3960 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8475c636a1
commit
d5a6871e97
|
@ -206,7 +206,7 @@ function populate_options() {
|
||||||
add_option('page_uris');
|
add_option('page_uris');
|
||||||
add_option('blacklist_keys');
|
add_option('blacklist_keys');
|
||||||
add_option('comment_registration', 0);
|
add_option('comment_registration', 0);
|
||||||
add_option('open_proxy_check', 1);
|
add_option('open_proxy_check', 0);
|
||||||
add_option('rss_language', 'en');
|
add_option('rss_language', 'en');
|
||||||
add_option('html_type', 'text/html');
|
add_option('html_type', 'text/html');
|
||||||
// 1.5.1
|
// 1.5.1
|
||||||
|
|
|
@ -1013,7 +1013,7 @@ function wp_check_filetype($filename, $mimes = null) {
|
||||||
function wp_proxy_check($ipnum) {
|
function wp_proxy_check($ipnum) {
|
||||||
if ( get_option('open_proxy_check') && isset($ipnum) ) {
|
if ( get_option('open_proxy_check') && isset($ipnum) ) {
|
||||||
$rev_ip = implode( '.', array_reverse( explode( '.', $ipnum ) ) );
|
$rev_ip = implode( '.', array_reverse( explode( '.', $ipnum ) ) );
|
||||||
$lookup = $rev_ip . '.opm.blitzed.org.';
|
$lookup = $rev_ip . '.sbl-xbl.spamhaus.org.';
|
||||||
if ( $lookup != gethostbyname( $lookup ) )
|
if ( $lookup != gethostbyname( $lookup ) )
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue