Make WordPress Core


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

Properly escape comment_author_url when displaying, for 2.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-admin/includes/template.php

    r11673 r11720  
    20862086    if ( 'http://' == $author_url )
    20872087        $author_url = '';
    2088     $author_url_display = $author_url;
    2089     $author_url_display = str_replace('http://www.', '', $author_url_display);
    2090     $author_url_display = str_replace('http://', '', $author_url_display);
     2088    $author_url_display = preg_replace('|http://(www\.)?|i', '', $author_url);
    20912089    if ( strlen($author_url_display) > 50 )
    20922090        $author_url_display = substr($author_url_display, 0, 49) . '...';
Note: See TracChangeset for help on using the changeset viewer.