Skip to content

Commit fe79cf8

Browse files
committed
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
1 parent dfcf4b5 commit fe79cf8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wp-includes/class-http.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function request( $url, $args = array() ) {
8787
'redirection' => apply_filters( 'http_request_redirection_count', 5),
8888
'httpversion' => apply_filters( 'http_request_version', '1.0'),
8989
'user-agent' => apply_filters( 'http_headers_useragent', 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) ),
90-
'reject_unsafe_urls' => apply_filters( 'http_request_reject_unsafe_urls', false ),
90+
'reject_unsafe_urls' => apply_filters( 'http_request_reject_unsafe_urls', true ),
9191
'blocking' => true,
9292
'headers' => array(),
9393
'cookies' => array(),

0 commit comments

Comments
 (0)