WordPress.org

Make WordPress Core

Ticket #18469: formatting.php.patch

File formatting.php.patch, 621 bytes (added by jb510, 7 years ago)

Adds tel and git to protocol whitelist array

  • wp-includes/formatting.php

     
    22662266        }
    22672267
    22682268        if ( !is_array($protocols) )
    2269                 $protocols = array ('http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn');
     2269                $protocols = array ('http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'git', 'tel');
    22702270        if ( wp_kses_bad_protocol( $url, $protocols ) != $url )
    22712271                return '';
    22722272