Ticket #19414: 19414.diff
| File 19414.diff, 1.1 KB (added by , 14 years ago) |
|---|
-
wp-includes/functions.php
4665 4665 function wp_allowed_protocols() { 4666 4666 static $protocols; 4667 4667 4668 if ( empty( $protocols ) ) {4668 if ( empty( $protocols ) ) 4669 4669 $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn' ); 4670 $protocols = apply_filters( 'kses_allowed_protocols', $protocols );4671 }4670 4671 $protocols = apply_filters( 'kses_allowed_protocols', $protocols ); 4672 4672 4673 4673 return $protocols; 4674 4674 } -
wp-includes/formatting.php
2339 2339 if ( ! is_array( $protocols ) ) 2340 2340 $protocols = wp_allowed_protocols(); 2341 2341 if ( wp_kses_bad_protocol( $url, $protocols ) != $url ) 2342 return'';2342 $url = ''; 2343 2343 2344 2344 return apply_filters('clean_url', $url, $original_url, $_context); 2345 2345 }