WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/03/2010 09:20:20 PM (11 years ago)
Author:
markjaquith
Message:

Add some new protocols for KSES. Make the list of protocols filterable. Start esc_url() with the same list. fixes #10914. props technosailor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r14404 r14412  
    22152215
    22162216    if ( !is_array($protocols) )
    2217         $protocols = array('http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet');
     2217        $protocols = array ('http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn');
    22182218    if ( wp_kses_bad_protocol( $url, $protocols ) != $url )
    22192219        return '';
Note: See TracChangeset for help on using the changeset viewer.