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:
parent
db7cbbdc94
commit
c29d067801
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue