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
This commit is contained in:
parent
17039e3294
commit
144618f797
|
@ -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';
|
||||
|
||||
|
|
Loading…
Reference in New Issue