Ticket #10914: 10914.diff
File 10914.diff, 1.3 KB (added by , 15 years ago) |
---|
-
wp-includes/kses.php
387 387 * call this function. 388 388 * 389 389 * The default allowed protocols are 'http', 'https', 'ftp', 'mailto', 'news', 390 * 'irc', 'gopher', 'nntp', 'feed', and finally 'telnet. This covers all common391 * link protocols, except for 'javascript' which should not be allowed for392 * untrusted users.390 * 'irc', 'gopher', 'nntp', 'feed', 'telnet, 'mms', 'rtsp' and 'svn'. This 391 * covers all common link protocols, except for 'javascript' which should not 392 * be allowed for untrusted users. 393 393 * 394 394 * @since 1.0.0 395 395 * … … 398 398 * @param array $allowed_protocols Optional. Allowed protocol in links. 399 399 * @return string Filtered content with only allowed HTML elements 400 400 */ 401 function wp_kses($string, $allowed_html, $allowed_protocols = array ('http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet' )) {401 function wp_kses($string, $allowed_html, $allowed_protocols = array ('http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn')) { 402 402 $string = wp_kses_no_null($string); 403 403 $string = wp_kses_js_entities($string); 404 404 $string = wp_kses_normalize_entities($string);