Make WordPress Core

Ticket #21081: 21081.diff

File 21081.diff, 1.3 KB (added by markjaquith, 12 years ago)
  • wp-admin/includes/user.php

    diff --git wp-admin/includes/user.php wp-admin/includes/user.php
    index ff1e91d..79a0ec1 100644
    function edit_user( $user_id = 0 ) { 
    6969                        $user->user_url = '';
    7070                } else {
    7171                        $user->user_url = esc_url_raw( $_POST['url'] );
    72                         $user->user_url = preg_match('/^(https?|ftps?|mailto|news|irc|gopher|nntp|feed|telnet):/is', $user->user_url) ? $user->user_url : 'http://'.$user->user_url;
     72                        $user->user_url = preg_match('/^(https?|ftps?|mailto|news|irc|gopher|nntp|feed|telnet|tel|fax):/is', $user->user_url) ? $user->user_url : 'http://'.$user->user_url;
    7373                }
    7474        }
    7575        if ( isset( $_POST['first_name'] ) )
  • wp-includes/functions.php

    diff --git wp-includes/functions.php wp-includes/functions.php
    index 839d798..5a33e5e 100644
    function wp_allowed_protocols() { 
    35083508        static $protocols;
    35093509
    35103510        if ( empty( $protocols ) ) {
    3511                 $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn' );
     3511                $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel', 'fax' );
    35123512                $protocols = apply_filters( 'kses_allowed_protocols', $protocols );
    35133513        }
    35143514