Make WordPress Core


Ignore:
Timestamp:
07/06/2006 12:04:24 AM (19 years ago)
Author:
matt
Message:

Clean up how we address IP addresses throughout the code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r3979 r3990  
    10131013function wp_proxy_check($ipnum) {
    10141014    if ( get_option('open_proxy_check') && isset($ipnum) ) {
     1015        $ipnum = preg_replace( '/([0-9]{1,3})\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*/', '$1', $ipnum );
    10151016        $rev_ip = implode( '.', array_reverse( explode( '.', $ipnum ) ) );
    10161017        $lookup = $rev_ip . '.sbl-xbl.spamhaus.org.';
Note: See TracChangeset for help on using the changeset viewer.