From 680d9c369f61c936680d87e06a72aa78ff33c8a6 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 9 Oct 2008 00:19:11 +0000 Subject: [PATCH] strip slashes before preparing to avoid double escaping git-svn-id: https://develop.svn.wordpress.org/trunk@9105 602fd350-edb4-49c9-b593-d223f7449a82 --- 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);