From fe79cf8fd7d2e58b17fce72e70db55b8f1417ba5 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 21 Jun 2013 06:17:56 +0000 Subject: [PATCH] Change the HTTP API's URL validation default, in trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@24482 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 6f6a08a22b..91d06c49ff 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -87,7 +87,7 @@ class WP_Http { 'redirection' => apply_filters( 'http_request_redirection_count', 5), 'httpversion' => apply_filters( 'http_request_version', '1.0'), 'user-agent' => apply_filters( 'http_headers_useragent', 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) ), - 'reject_unsafe_urls' => apply_filters( 'http_request_reject_unsafe_urls', false ), + 'reject_unsafe_urls' => apply_filters( 'http_request_reject_unsafe_urls', true ), 'blocking' => true, 'headers' => array(), 'cookies' => array(),