Ticket #21974: 21974.patch
File 21974.patch, 518 bytes (added by , 12 years ago) |
---|
-
wp-includes/formatting.php
2595 2595 2596 2596 if ( ! is_array( $protocols ) ) 2597 2597 $protocols = wp_allowed_protocols(); 2598 if ( wp_kses_bad_protocol( $url, $protocols ) != $url )2598 if ( '/' != $url[0] && wp_kses_bad_protocol( $url, $protocols ) != $url ) 2599 2599 return ''; 2600 2600 2601 2601 return apply_filters('clean_url', $url, $original_url, $_context);