[BUGFIX] Remove wrong escaping of email sender 03/33603/2
authorMarkus Klein <klein.t3@reelworx.at>
Thu, 23 Oct 2014 23:48:01 +0000 (01:48 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Tue, 28 Oct 2014 23:59:14 +0000 (00:59 +0100)
Remove a wrong escaping method from sysext form which causes email
problems.

Resolves: #60437
Releases: master, 6.2
Change-Id: I3a5447b55f4f0723637c04929de0412a4a3b67a7
Reviewed-on: http://review.typo3.org/33603
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/form/Classes/PostProcess/MailPostProcessor.php

index e02bf67..7ed8254 100644 (file)
@@ -128,9 +128,6 @@ class MailPostProcessor implements \TYPO3\CMS\Form\PostProcess\PostProcessorInte
                        $fromName = $GLOBALS['TYPO3_CONF_VARS']['MAIL']['defaultMailFromName'];
                }
                $fromName = $this->sanitizeHeaderString($fromName);
-               if (preg_match('/\\s|,/', $fromName) >= 1) {
-                       $fromName = '"' . $fromName . '"';
-               }
                if (!empty($fromName)) {
                        $from = array($fromEmail => $fromName);
                } else {