mirror of
git://develop.git.wordpress.org/
synced 2025-03-15 09:29:48 +01:00
HTTP: 0.1.2.3
is not a valid IP.
Merges [36435] to the 4.4 branch. git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36436 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
780e5df7b5
commit
e6978c0bdf
@ -536,7 +536,7 @@ function wp_http_validate_url( $url ) {
|
||||
}
|
||||
if ( $ip ) {
|
||||
$parts = array_map( 'intval', explode( '.', $ip ) );
|
||||
if ( 127 === $parts[0] || 10 === $parts[0]
|
||||
if ( 127 === $parts[0] || 10 === $parts[0] || 0 === $parts[0]
|
||||
|| ( 172 === $parts[0] && 16 <= $parts[1] && 31 >= $parts[1] )
|
||||
|| ( 192 === $parts[0] && 168 === $parts[1] )
|
||||
) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user