Make WordPress Core


Ignore:
Timestamp:
02/02/2016 01:03:05 PM (9 years ago)
Author:
ocean90
Message:

HTTP: 0.1.2.3 is not a valid IP.

Merges [36435] to the 3.7 branch.

Location:
branches/3.7
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3.7

  • branches/3.7/src

  • branches/3.7/src/wp-includes/http.php

    r30447 r36443  
    482482        if ( $ip ) {
    483483            $parts = array_map( 'intval', explode( '.', $ip ) );
    484             if ( 127 === $parts[0] || 10 === $parts[0]
     484            if ( 127 === $parts[0] || 10 === $parts[0] || 0 === $parts[0]
    485485                || ( 172 === $parts[0] && 16 <= $parts[1] && 31 >= $parts[1] )
    486486                || ( 192 === $parts[0] && 168 === $parts[1] )
Note: See TracChangeset for help on using the changeset viewer.