Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Strip commas and spaces from charset. Props Jose Carlos Norte

git-svn-id: http://svn.automattic.com/wordpress/trunk@12032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit 144618f797d07c4b0881954ec91b6f650a2d2afa 1 parent 17039e3
ryan authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  wp-trackback.php
View
2  wp-trackback.php
@@ -50,7 +50,7 @@ function trackback_response($error = 0, $error_message = '') {
$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';
Please sign in to comment.
Something went wrong with that request. Please try again.