WordPress.org

Make WordPress Core

Changeset 7875


Ignore:
Timestamp:
05/02/2008 05:26:30 PM (10 years ago)
Author:
ryan
Message:

Fix send_to_editor escaping. Props Glotzfisch. fixes #6898 for 2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/wp-admin/includes/media.php

    r7867 r7875  
    5656
    5757    if ( $url )
    58         $html = "<a href='".attribute_escape($url)."'$rel>$html</a>";
     58        $html = '<a href="' . clean_url($url) . "\"$rel>$html</a>";
    5959
    6060    $html = apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url, $size );
Note: See TracChangeset for help on using the changeset viewer.