Drop trackbacks that request UTF-7

git-svn-id: http://svn.automattic.com/wordpress/trunk@7559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-03-28 06:51:19 +00:00
parent c4865c3418
commit 121fca1624
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);