Changeset 4224

Show
Ignore:
Timestamp:
09/25/06 01:45:29 (2 years ago)
Author:
ryan
Message:

Sanitize proxy IP check.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.0/wp-includes/functions-post.php

    r3959 r4224  
    684684function wp_proxy_check($ipnum) { 
    685685    if ( get_option('open_proxy_check') && isset($ipnum) ) { 
     686        $ipnum = preg_replace( '/([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*/', '$1', $ipnum ); 
    686687        $rev_ip = implode( '.', array_reverse( explode( '.', $ipnum ) ) ); 
    687688        $lookup = $rev_ip . '.sbl-xbl.spamhaus.org.';