From 2ba430fac6d9adfdccc3928ada907ef1201de330 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 19 Oct 2009 15:10:59 +0000 Subject: [PATCH] Strip commas and spaces from charset. Props Jose Carlos Norte git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@12057 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-trackback.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-trackback.php b/wp-trackback.php index 58886f8dc5..2c45d472c7 100644 --- a/wp-trackback.php +++ b/wp-trackback.php @@ -50,7 +50,7 @@ $excerpt = stripslashes($_POST['excerpt']); $blog_name = stripslashes($_POST['blog_name']); if ($charset) - $charset = strtoupper( trim($charset) ); + $charset = str_replace( array(',', ' '), '', strtoupper( trim($charset) ) ); else $charset = 'ASCII, UTF-8, ISO-8859-1, JIS, EUC-JP, SJIS';