From e22824a3168a6c64c163c6be05474d7286577adb Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 15 Sep 2016 08:37:36 +0200 Subject: [PATCH] Use mb_strtoupper() instead of strtoupper() for localized texts --- program/steps/utils/error.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/program/steps/utils/error.inc b/program/steps/utils/error.inc index 7ca933e52..92786cc74 100644 --- a/program/steps/utils/error.inc +++ b/program/steps/utils/error.inc @@ -43,7 +43,7 @@ EOF; // authorization error else if ($ERROR_CODE == 401) { - $__error_title = strtoupper($rcmail->gettext('errauthorizationfailed')); + $__error_title = mb_strtoupper($rcmail->gettext('errauthorizationfailed')); $__error_text = nl2br($rcmail->gettext('errunauthorizedexplain') . "\n" . $rcmail->gettext('errcontactserveradmin')); } @@ -58,14 +58,14 @@ else if ($ERROR_CODE == 403) { $add = $rcmail->gettext('errcontactserveradmin'); } - $__error_title = strtoupper($rcmail->gettext('errrequestcheckfailed')); + $__error_title = mb_strtoupper($rcmail->gettext('errrequestcheckfailed')); $__error_text = nl2br($rcmail->gettext('errcsrfprotectionexplain')) . '

' . $add . '

'; } // failed request (wrong step in URL) else if ($ERROR_CODE == 404) { $request_url = htmlentities($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); - $__error_title = strtoupper($rcmail->gettext('errnotfound')); + $__error_title = mb_strtoupper($rcmail->gettext('errnotfound')); $__error_text = nl2br($rcmail->gettext('errnotfoundexplain') . "\n" . $rcmail->gettext('errcontactserveradmin')); @@ -76,7 +76,7 @@ else if ($ERROR_CODE == 404) { else if ($ERROR_CODE == 450 && $_SERVER['REQUEST_METHOD'] == 'GET' && $rcmail->action == 'compose') { $url = $rcmail->url('compose'); - $__error_title = strtoupper($rcmail->gettext('errcomposesession')); + $__error_title = mb_strtoupper($rcmail->gettext('errcomposesession')); $__error_text = nl2br($rcmail->gettext('errcomposesessionexplain')) . '

' . html::a($url, $rcmail->gettext('clicktocompose')) . '

'; }