Broader fix for [24497] for setup-config.php in trunk. props SergeyBiryukov, markoheijnen. fixes #24627.
git-svn-id: https://develop.svn.wordpress.org/trunk@24503 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7c75f1e337
commit
0e18d28947
|
@ -119,10 +119,11 @@ class WP_Http {
|
|||
if ( false !== $pre )
|
||||
return $pre;
|
||||
|
||||
if ( function_exists( 'wp_kses_bad_protocol' ) ) {
|
||||
if ( $r['reject_unsafe_urls'] )
|
||||
$url = wp_http_validate_url( $url );
|
||||
if ( function_exists( 'wp_kses_bad_protocol' ) )
|
||||
$url = wp_kses_bad_protocol( $url, array( 'http', 'https', 'ssl' ) );
|
||||
}
|
||||
|
||||
$arrURL = @parse_url( $url );
|
||||
|
||||
|
|
Loading…
Reference in New Issue