Make WordPress Core


Ignore:
Timestamp:
09/26/2020 09:00:19 PM (4 years ago)
Author:
TimothyBlynJacobs
Message:

Add ircs and irc6 to the list of allowed protocols.

This adds support for the secure and ipv6 variants of the already allowed irc protocol.

Props arealnobrainer, markparnell, ctmartin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r49049 r49055  
    62966296 * @since 4.7.0 Added 'urn' to the protocols array.
    62976297 * @since 5.3.0 Added 'sms' to the protocols array.
     6298 * @since 5.6.0 Added 'irc6' and 'ircs' to the protocols array.
    62986299 *
    62996300 * @see wp_kses()
     
    63016302 *
    63026303 * @return string[] Array of allowed protocols. Defaults to an array containing 'http', 'https',
    6303  *                  'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet',
    6304  *                  'mms', 'rtsp', 'sms', 'svn', 'tel', 'fax', 'xmpp', 'webcal', and 'urn'.
     6304 *                  'ftp', 'ftps', 'mailto', 'news', 'irc', 'irc6', 'ircs', 'gopher', 'nntp', 'feed',
     6305 *                  'telnet', 'mms', 'rtsp', 'sms', 'svn', 'tel', 'fax', 'xmpp', 'webcal', and 'urn'.
    63056306 *                  This covers all common link protocols, except for 'javascript' which should not
    63066307 *                  be allowed for untrusted users.
     
    63106311
    63116312    if ( empty( $protocols ) ) {
    6312         $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'sms', 'svn', 'tel', 'fax', 'xmpp', 'webcal', 'urn' );
     6313        $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'irc6', 'ircs', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'sms', 'svn', 'tel', 'fax', 'xmpp', 'webcal', 'urn' );
    63136314    }
    63146315
Note: See TracChangeset for help on using the changeset viewer.