Skip to content

Commit

Permalink
Strip commas and spaces from charset. Props Jose Carlos Norte
Browse files Browse the repository at this point in the history
git-svn-id: https://develop.svn.wordpress.org/branches/2.8@12057 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
ryanboren committed Oct 19, 2009
1 parent ccaff95 commit 38c0df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-trackback.php
Expand Up @@ -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';

Expand Down

0 comments on commit 38c0df4

Please sign in to comment.