Ticket #24627: 24627.patch
File 24627.patch, 643 bytes (added by , 12 years ago) |
---|
-
wp-includes/class-http.php
119 119 if ( false !== $pre ) 120 120 return $pre; 121 121 122 if ( $r['reject_unsafe_urls'] )123 $url = wp_http_validate_url( $url );124 if ( function_exists( 'wp_kses_bad_protocol' ) )122 if ( function_exists( 'wp_kses_bad_protocol' ) ) { 123 if ( $r['reject_unsafe_urls'] ) 124 $url = wp_http_validate_url( $url ); 125 125 $url = wp_kses_bad_protocol( $url, array( 'http', 'https', 'ssl' ) ); 126 } 126 127 127 128 $arrURL = @parse_url( $url ); 128 129