Fix single quote sanitization. Bug 594. Hat Tip: bcrow.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2004-12-25 17:21:43 +00:00
parent db7cbbdc94
commit c29d067801
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}