From 2c1f49c199905cf7c015469d243d43b3512417ea Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Sun, 14 Jan 2007 12:55:58 +0000 Subject: [PATCH] mbstring check by mila --- docs/NEWS | 3 +++ include/lang.inc.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/NEWS b/docs/NEWS index d7ad7e5..5321c03 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -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 diff --git a/include/lang.inc.php b/include/lang.inc.php index e2302a1..b7d7c93 100644 --- a/include/lang.inc.php +++ b/include/lang.inc.php @@ -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; -- 2.39.5