Skip to content
Browse files

Drop trackbacks that request UTF-7

git-svn-id: http://svn.automattic.com/wordpress/trunk@7559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent c4865c3 commit 121fca1624468fe5e3a7740bacdf984652e8ad23 ryan committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 wp-trackback.php
View
4 wp-trackback.php
@@ -43,6 +43,10 @@ function trackback_response($error = 0, $error_message = '') {
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);

0 comments on commit 121fca1

Please sign in to comment.
Something went wrong with that request. Please try again.