Make WordPress Core


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

Properly escape comment_author_url when displaying, for trunk

File:
1 edited

Legend:

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

    r11711 r11721  
    20832083        if ( 'http://' == $author_url )
    20842084                $author_url = '';
    2085         $author_url_display = $author_url;
    2086         $author_url_display = str_replace('http://www.', '', $author_url_display);
    2087         $author_url_display = str_replace('http://', '', $author_url_display);
     2085        $author_url_display = preg_replace('|http://(www\.)?|i', '', $author_url);
    20882086        if ( strlen($author_url_display) > 50 )
    20892087                $author_url_display = substr($author_url_display, 0, 49) . '...';
Note: See TracChangeset for help on using the changeset viewer.