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

    r4656 r5058  
    3838 
    3939$content  = wp_specialchars($_REQUEST['content']);
    40 $popupurl = attribute_escape(stripslashes($_REQUEST['popupurl']));
     40$popupurl = clean_url(stripslashes($_REQUEST['popupurl']));
    4141    if ( !empty($content) ) {
    4242        $post->post_content = wp_specialchars( stripslashes($_REQUEST['content']) );
Note: See TracChangeset for help on using the changeset viewer.