From fa3d304307fb6932fda596fb5d6d617169f76a12 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sun, 10 Aug 2008 02:14:13 +0000 Subject: [PATCH] Strip slashes when inserting media into the editor. Fixes #7488 for 2.7 git-svn-id: https://develop.svn.wordpress.org/trunk@8605 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index d1138abc6c..f9c1bace93 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -280,7 +280,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'])) )