Make WordPress Core

Changeset 36435


Ignore:
Timestamp:
02/02/2016 12:54:59 PM (9 years ago)
Author:
ocean90
Message:

HTTP: 0.1.2.3 is not a valid IP.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/http.php

    r36398 r36435  
    537537        if ( $ip ) {
    538538            $parts = array_map( 'intval', explode( '.', $ip ) );
    539             if ( 127 === $parts[0] || 10 === $parts[0]
     539            if ( 127 === $parts[0] || 10 === $parts[0] || 0 === $parts[0]
    540540                || ( 172 === $parts[0] && 16 <= $parts[1] && 31 >= $parts[1] )
    541541                || ( 192 === $parts[0] && 168 === $parts[1] )
Note: See TracChangeset for help on using the changeset viewer.