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