Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Strip slashes when inserting media into the editor. Fixes #7488 for 2…

….6.1

git-svn-id: http://svn.automattic.com/wordpress/branches/2.6@8604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit b08fd8141de451380aaa86d380dc488741df9866 1 parent 0ca99f4
azaozz authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  wp-admin/includes/media.php
View
2  wp-admin/includes/media.php
@@ -281,7 +281,7 @@ function media_upload_form_handler() {
if ( isset($_POST['send']) ) {
$keys = array_keys($_POST['send']);
$send_id = (int) array_shift($keys);
- $attachment = $_POST['attachments'][$send_id];
+ $attachment = stripslashes_deep( $_POST['attachments'][$send_id] );
$html = $attachment['post_title'];
if ( !empty($attachment['url']) ) {
if ( strpos($attachment['url'], 'attachment_id') || false !== strpos($attachment['url'], get_permalink($_POST['post_id'])) )
Please sign in to comment.
Something went wrong with that request. Please try again.