mbstring check by mila

This commit is contained in:
Garvin Hicking 2007-01-14 12:55:58 +00:00
parent 0dc93d6dee
commit 512bf7d17a
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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;