Make WordPress Core

Ticket #24627: 24627.patch

File 24627.patch, 643 bytes (added by SergeyBiryukov, 12 years ago)
  • wp-includes/class-http.php

     
    119119                if ( false !== $pre )
    120120                        return $pre;
    121121
    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 );
    125125                        $url = wp_kses_bad_protocol( $url, array( 'http', 'https', 'ssl' ) );
     126                }
    126127
    127128                $arrURL = @parse_url( $url );
    128129