Make WordPress Core

Ticket #21974: 21974.patch

File 21974.patch, 518 bytes (added by SergeyBiryukov, 12 years ago)
  • wp-includes/formatting.php

     
    25952595
    25962596        if ( ! is_array( $protocols ) )
    25972597                $protocols = wp_allowed_protocols();
    2598         if ( wp_kses_bad_protocol( $url, $protocols ) != $url )
     2598        if ( '/' != $url[0] && wp_kses_bad_protocol( $url, $protocols ) != $url )
    25992599                return '';
    26002600
    26012601        return apply_filters('clean_url', $url, $original_url, $_context);