From 10d81f7d37bdce90f1720bbb8e243c61288570b9 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 25 Dec 2004 17:21:43 +0000 Subject: [PATCH] Fix single quote sanitization. Bug 594. Hat Tip: bcrow. git-svn-id: https://develop.svn.wordpress.org/trunk@2001 602fd350-edb4-49c9-b593-d223f7449a82 --- 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; }