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

git-svn-id: https://develop.svn.wordpress.org/trunk@2001 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2004-12-25 17:21:43 +00:00
parent 1e15c95646
commit 10d81f7d37
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;
}