mbstring check by mila
This commit is contained in:
parent
0dc93d6dee
commit
512bf7d17a
@ -3,6 +3,9 @@
|
||||
Version 1.2 ()
|
||||
------------------------------------------------------------------------
|
||||
|
||||
* Stricter mbstring-extension check for special charsets like czech,
|
||||
thanks to mila
|
||||
|
||||
* Upgraded DB-scheme to allow longer author usernames
|
||||
|
||||
* Improved Spamblock plugin to allow filtering email addresses
|
||||
|
@ -59,7 +59,7 @@ if (!defined('serendipity_MB_LOADED') && defined('serendipity_LANG_LOADED')) {
|
||||
static $mbstring = null;
|
||||
|
||||
if (is_null($mbstring)) {
|
||||
$mbstring = (extension_loaded('mbstring') ? 1 : 0);
|
||||
$mbstring = (extension_loaded('mbstring') && @mb_internal_encoding(LANG_CHARSET) ? 1 : 0);
|
||||
if ($mbstring === 1) {
|
||||
if (function_exists('mb_strtoupper')) {
|
||||
$mbstring = 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user