| 1 | Index: wp-includes/formatting.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/formatting.php (revision 23297) |
|---|
| 4 | +++ wp-includes/formatting.php (working copy) |
|---|
| 5 | @@ -2603,10 +2603,11 @@ |
|---|
| 6 | |
|---|
| 7 | if ( ! is_array( $protocols ) ) |
|---|
| 8 | $protocols = wp_allowed_protocols(); |
|---|
| 9 | - if ( wp_kses_bad_protocol( $url, $protocols ) != $url ) |
|---|
| 10 | + $good_protocol_url = wp_kses_bad_protocol( $url, $protocols ); |
|---|
| 11 | + if ( strtolower( $good_protocol_url ) != strtolower( $url ) ) |
|---|
| 12 | return ''; |
|---|
| 13 | |
|---|
| 14 | - return apply_filters('clean_url', $url, $original_url, $_context); |
|---|
| 15 | + return apply_filters('clean_url', $good_protocol_url, $original_url, $_context); |
|---|
| 16 | } |
|---|
| 17 | |
|---|
| 18 | /** |
|---|