From cd7ea183e7a1facc4ecd7fa91fcd33aef4cc1ba6 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 9 Oct 2008 00:19:11 +0000 Subject: [PATCH] strip slashes before preparing to avoid double escaping git-svn-id: http://svn.automattic.com/wordpress/trunk@9105 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index e6d5e3bcfe..54a47c2e5c 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -377,6 +377,10 @@ function get_post_to_edit( $id ) { function post_exists($title, $content = '', $post_date = '') { global $wpdb; + $title = stripslashes($title); + $content = stripslashes($content); + $post_date = stripslashes($post_date); + if (!empty ($post_date)) $post_date = $wpdb->prepare("AND post_date = %s", $post_date);