X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FMail%2FMailFormatHelper.php;h=431c846ceec9ec7347c77c7967f25572c765d8e4;hb=refs%2Fheads%2Fd864;hp=ca63ca040e0d7197012f8aa7205bebea438895dc;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Mail/MailFormatHelper.php b/web/core/lib/Drupal/Core/Mail/MailFormatHelper.php index ca63ca040..431c846ce 100644 --- a/web/core/lib/Drupal/Core/Mail/MailFormatHelper.php +++ b/web/core/lib/Drupal/Core/Mail/MailFormatHelper.php @@ -3,7 +3,6 @@ namespace Drupal\Core\Mail; use Drupal\Component\Utility\Html; -use Drupal\Component\Utility\Unicode; use Drupal\Component\Utility\Xss; use Drupal\Core\Site\Settings; @@ -222,12 +221,12 @@ class MailFormatHelper { // Fancy headers. case 'h1': $indent[] = '======== '; - $casing = '\Drupal\Component\Utility\Unicode::strtoupper'; + $casing = 'mb_strtoupper'; break; case 'h2': $indent[] = '-------- '; - $casing = '\Drupal\Component\Utility\Unicode::strtoupper'; + $casing = 'mb_strtoupper'; break; case '/h1': @@ -260,7 +259,7 @@ class MailFormatHelper { // Convert inline HTML text to plain text; not removing line-breaks or // white-space, since that breaks newlines when sanitizing plain-text. $value = trim(Html::decodeEntities($value)); - if (Unicode::strlen($value)) { + if (mb_strlen($value)) { $chunk = $value; } }