Broader fix for [24497] for setup-config.php in trunk. props SergeyBiryukov, markoheijnen. fixes #24627.
git-svn-id: http://core.svn.wordpress.org/trunk@24503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8792da0820
commit
3be3080228
|
@ -119,10 +119,11 @@ class WP_Http {
|
|||
if ( false !== $pre )
|
||||
return $pre;
|
||||
|
||||
if ( $r['reject_unsafe_urls'] )
|
||||
$url = wp_http_validate_url( $url );
|
||||
if ( function_exists( 'wp_kses_bad_protocol' ) )
|
||||
if ( function_exists( 'wp_kses_bad_protocol' ) ) {
|
||||
if ( $r['reject_unsafe_urls'] )
|
||||
$url = wp_http_validate_url( $url );
|
||||
$url = wp_kses_bad_protocol( $url, array( 'http', 'https', 'ssl' ) );
|
||||
}
|
||||
|
||||
$arrURL = @parse_url( $url );
|
||||
|
||||
|
|
Loading…
Reference in New Issue