[TASK] Remove direct usage of mb_ methods in the core 46/48846/2
authorGeorg Ringer <georg.ringer@gmail.com>
Thu, 7 Jul 2016 17:38:23 +0000 (19:38 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 9 Jul 2016 14:02:08 +0000 (16:02 +0200)
As mbstring is not a requirement, remove the usage of its
methods in the core.

Resolves: #76990
Releases: master, 7.6
Change-Id: Icdf60ae0c977b66daaa8b64c470bbe83e59955f4
Reviewed-on: https://review.typo3.org/48846
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/Element/ImageManipulationElement.php
typo3/sysext/core/Classes/Mail/MailMessage.php

index 065ce62..61e8ecb 100644 (file)
@@ -88,7 +88,7 @@ class ImageManipulationElement extends AbstractFormElement
 
         $content = '';
         $preview = '';
-        if (GeneralUtility::inList(mb_strtolower($config['allowedExtensions']), mb_strtolower($file->getExtension()))) {
+        if (GeneralUtility::inList(strtolower($config['allowedExtensions']), strtolower($file->getExtension()))) {
 
             // Get preview
             $preview = $this->getPreview($file, $parameterArray['itemFormElValue']);
@@ -140,7 +140,7 @@ class ImageManipulationElement extends AbstractFormElement
         }
 
         $content .= '<p class="text-muted"><em>' . htmlspecialchars($languageService->sL('LLL:EXT:lang/locallang_wizards.xlf:imwizard.supported-types-message')) . '<br />';
-        $content .= mb_strtoupper(implode(', ', GeneralUtility::trimExplode(',', $config['allowedExtensions'])));
+        $content .= strtoupper(implode(', ', GeneralUtility::trimExplode(',', $config['allowedExtensions'])));
         $content .= '</em></p>';
 
         $item = '<div class="media">';
index 8efcec7..4f25416 100644 (file)
@@ -254,9 +254,7 @@ class MailMessage extends \Swift_Message
         }
         $domain = substr($email, $atPosition + 1);
         $local = substr($email, 0, $atPosition);
-        if (!mb_check_encoding($domain, 'ASCII')) {
-            $domain = \TYPO3\CMS\Core\Utility\GeneralUtility::idnaEncode($domain);
-        }
+        $domain = \TYPO3\CMS\Core\Utility\GeneralUtility::idnaEncode($domain);
 
         return $local . '@' . $domain;
     }