Make WordPress Core


Ignore:
Timestamp:
03/17/2007 09:04:56 AM (18 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.0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/links.php

    r4656 r5058  
    213213        $the_link = '#';
    214214        if (!empty($row->link_url))
    215             $the_link = attribute_escape($row->link_url);
     215            $the_link = clean_url($row->link_url);
    216216
    217217        $rel = $row->link_rel;
Note: See TracChangeset for help on using the changeset viewer.