From 92fe0bb5b6716ba01dd8a79a6397c9f61711a2c1 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 4 Jun 2010 20:11:06 +0000 Subject: [PATCH] Fix logic git-svn-id: https://develop.svn.wordpress.org/trunk@15143 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index fe26206735..d913d6dbba 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -1171,7 +1171,7 @@ class WP_Http_ExtHTTP { $arrURL = parse_url($url); - if ( 'http' != $arrURL['scheme'] || 'https' != $arrURL['scheme'] ) + if ( 'http' != $arrURL['scheme'] && 'https' != $arrURL['scheme'] ) $url = preg_replace('|^' . preg_quote($arrURL['scheme'], '|') . '|', 'http', $url); $is_local = isset($args['local']) && $args['local'];