Ticket #23187: 23187.diff
File 23187.diff, 661 bytes (added by , 12 years ago) |
---|
-
wp-includes/formatting.php
2603 2603 2604 2604 if ( ! is_array( $protocols ) ) 2605 2605 $protocols = wp_allowed_protocols(); 2606 if ( wp_kses_bad_protocol( $url, $protocols ) != $url ) 2606 $good_protocol_url = wp_kses_bad_protocol( $url, $protocols ); 2607 if ( strtolower( $good_protocol_url ) != strtolower( $url ) ) 2607 2608 return ''; 2608 2609 2609 return apply_filters('clean_url', $ url, $original_url, $_context);2610 return apply_filters('clean_url', $good_protocol_url, $original_url, $_context); 2610 2611 } 2611 2612 2612 2613 /**