mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-21 22:15:28 +00:00
Properly escape filename when sending to editor, props hakre sivel, fixes #10252
git-svn-id: http://svn.automattic.com/wordpress/trunk@12051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d0b8296e23
commit
9783a2415a
@ -107,7 +107,7 @@ function get_image_send_to_editor($id, $alt, $title, $align, $url='', $rel = fal
|
||||
$rel = $rel ? ' rel="attachment wp-att-' . esc_attr($id).'"' : '';
|
||||
|
||||
if ( $url )
|
||||
$html = '<a href="' . esc_url($url) . "\"$rel>$html</a>";
|
||||
$html = '<a href="' . esc_attr($url) . "\"$rel>$html</a>";
|
||||
|
||||
$html = apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url, $size );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user