From 121fca1624468fe5e3a7740bacdf984652e8ad23 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 28 Mar 2008 06:51:19 +0000 Subject: [PATCH] Drop trackbacks that request UTF-7 git-svn-id: http://svn.automattic.com/wordpress/trunk@7559 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-trackback.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-trackback.php b/wp-trackback.php index 2c68acfccf..26f8763ede 100644 --- a/wp-trackback.php +++ b/wp-trackback.php @@ -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);