From 61efc669b508b8fdbca27cb2fc34f3e6a17b50da Mon Sep 17 00:00:00 2001
From: "Dominik Schilling (ocean90)" <ocean90@git.wordpress.org>
Date: Tue, 2 Feb 2016 13:03:05 +0000
Subject: [PATCH] HTTP: `0.1.2.3` is not a valid IP.

Merges [36435] to the 3.7 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/3.7@36443 602fd350-edb4-49c9-b593-d223f7449a82
---
 src/wp-includes/http.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wp-includes/http.php b/src/wp-includes/http.php
index 4c1a147760..7da2483117 100644
--- a/src/wp-includes/http.php
+++ b/src/wp-includes/http.php
@@ -481,7 +481,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] )
 			) {