From 18c673c2755494cc2ac9afcf15e8b2ae36647e81 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 21 Sep 2005 16:35:35 +0000 Subject: [PATCH] stripslashes before running kses. Props donncha. fixes #1697 git-svn-id: http://svn.automattic.com/wordpress/trunk@2902 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/kses.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/kses.php b/wp-includes/kses.php index f1cf94179..ecb037613 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -512,7 +512,7 @@ function wp_filter_kses($data) { function wp_filter_post_kses($data) { global $allowedposttags; - return wp_kses($data, $allowedposttags); + return addslashes ( wp_kses(stripslashes( $data ), $allowedposttags) ); } function kses_init() {