Properly escape filename when sending to editor, props hakre sivel, fixes #10252
git-svn-id: https://develop.svn.wordpress.org/trunk@12051 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
226abaca88
commit
fa3370c044
@ -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…
Reference in New Issue
Block a user