Drop trackbacks that request UTF-7

git-svn-id: https://develop.svn.wordpress.org/trunk@7559 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-03-28 06:51:19 +00:00
parent 36b19bb6ad
commit 22ce6cd795
1 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,10 @@ if ($charset)
else
$charset = 'ASCII, UTF-8, ISO-8859-1, JIS, EUC-JP, SJIS';
// No valid uses for UTF-7
if ( false !== strpos($charset, 'UTF-7') )
die;
if ( function_exists('mb_convert_encoding') ) { // For international trackbacks
$title = mb_convert_encoding($title, get_option('blog_charset'), $charset);
$excerpt = mb_convert_encoding($excerpt, get_option('blog_charset'), $charset);