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-admin/link-manager.php

    r4700 r5057  
    134134        $link->link_name = attribute_escape($link->link_name);
    135135        $link->link_description = wp_specialchars($link->link_description);
    136         $link->link_url = attribute_escape($link->link_url);
     136        $link->link_url = clean_url($link->link_url);
    137137        $link->link_category = wp_get_link_cats($link->link_id);
    138138        $short_url = str_replace('http://', '', $link->link_url);
Note: See TracChangeset for help on using the changeset viewer.