Make WordPress Core

Changeset 4224


Ignore:
Timestamp:
09/25/2006 01:45:29 AM (18 years ago)
Author:
ryan
Message:

Sanitize proxy IP check.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.';
Note: See TracChangeset for help on using the changeset viewer.