mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
Use wp_safe_remote_request() and friends instead of reject_unsafe_urls = true.
fixes #24646. git-svn-id: https://develop.svn.wordpress.org/trunk@24917 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -183,7 +183,6 @@ class WP_Importer {
|
||||
|
||||
$headers = array();
|
||||
$args = array();
|
||||
$args['reject_unsafe_urls'] = true;
|
||||
if ( true === $head )
|
||||
$args['method'] = 'HEAD';
|
||||
if ( !empty( $username ) && !empty( $password ) )
|
||||
@@ -191,7 +190,7 @@ class WP_Importer {
|
||||
|
||||
$args['headers'] = $headers;
|
||||
|
||||
return wp_remote_request( $url, $args );
|
||||
return wp_safe_remote_request( $url, $args );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user