From 68bd8d9282468ea51311614f3d9616addbe99f67 Mon Sep 17 00:00:00 2001 From: kink Date: Tue, 29 Mar 2005 13:16:05 +0000 Subject: [PATCH] When wanting to use mb_strtoupper, test for the existence of that function (couldn't send any mail anymore because I am lacking that function). git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9153 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/strings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/strings.php b/functions/strings.php index 84a70af4..bd17965a 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -1240,7 +1240,7 @@ function sq_strtoupper($string,$charset='auto') { $charset=$default_charset; } $charset = strtolower($charset); - if (function_exists('mb_internal_encoding') && + if (function_exists('mb_strtoupper') && in_array($charset,sq_mb_list_encodings())) { return mb_strtoupper($string,$charset); } @@ -1250,4 +1250,4 @@ function sq_strtoupper($string,$charset='auto') { return strtoupper($string); } $PHP_SELF = php_self(); -?> \ No newline at end of file +?> -- 2.25.1