Make WordPress Core

Changeset 36437


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

HTTP: 0.1.2.3 is not a valid IP.

Merges [36435] to the 4.3 branch.

Location:
branches/4.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3

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

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