plugin updates
This commit is contained in:
@@ -60,7 +60,14 @@ $blog_name = isset( $_POST['blog_name'] ) ? wp_unslash( $_POST['blog_name'] ) :
|
||||
|
||||
if ( $charset ) {
|
||||
$charset = str_replace( array( ',', ' ' ), '', strtoupper( trim( $charset ) ) );
|
||||
} else {
|
||||
|
||||
// Validate the specified "sender" charset is available on the receiving site.
|
||||
if ( function_exists( 'mb_list_encodings' ) && ! in_array( $charset, mb_list_encodings(), true ) ) {
|
||||
$charset = '';
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! $charset ) {
|
||||
$charset = 'ASCII, UTF-8, ISO-8859-1, JIS, EUC-JP, SJIS';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user