Make WordPress Core


Ignore:
Timestamp:
07/18/2009 11:21:50 PM (16 years ago)
Author:
azaozz
Message:

Properly escape comment_author_url when displaying, for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r11435 r11721  
    195195    global $comment;
    196196    $url = ('http://' == $comment->comment_author_url) ? '' : $comment->comment_author_url;
     197    $url = esc_url( $url, array('http', 'https') );
    197198    return apply_filters('get_comment_author_url', $url);
    198199}
Note: See TracChangeset for help on using the changeset viewer.