From c29d0678012737cf04170de65e909538b3e72b43 Mon Sep 17 00:00:00 2001 From: rboren Date: Sat, 25 Dec 2004 17:21:43 +0000 Subject: [PATCH] Fix single quote sanitization. Bug 594. Hat Tip: bcrow. git-svn-id: http://svn.automattic.com/wordpress/trunk@2001 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions-formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions-formatting.php b/wp-includes/functions-formatting.php index 11f254b275..1acf7a1799 100644 --- a/wp-includes/functions-formatting.php +++ b/wp-includes/functions-formatting.php @@ -104,7 +104,7 @@ function wp_specialchars( $text, $quotes = 0 ) { $text = str_replace('>', '>', $text); if ( $quotes ) { $text = str_replace('"', '"', $text); - $text = str_replace('"', ''', $text); + $text = str_replace("'", ''', $text); } return $text; }