Make WordPress Core


Ignore:
Timestamp:
03/17/2007 08:47:29 AM (19 years ago)
Author:
markjaquith
Message:

use clean_url() instead of attribute_escape() when dealing with src/href to protect against XSS. props xknown. fixes #3986 for 2.1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/wp-includes/bookmark-template.php

    r4800 r5057  
    9797        $the_link = '#';
    9898        if ( !empty($row->link_url) )
    99             $the_link = wp_specialchars($row->link_url);
     99            $the_link = clean_url($row->link_url);
    100100        $rel = $row->link_rel;
    101101        if ( '' != $rel )
     
    261261        $the_link = '#';
    262262        if ( !empty($bookmark->link_url) )
    263             $the_link = wp_specialchars($bookmark->link_url);
     263            $the_link = clean_url($bookmark->link_url);
    264264
    265265        $rel = $bookmark->link_rel;
Note: See TracChangeset for help on using the changeset viewer.