fixed bug #9725: double enquote in t3lib_htmlmail of returnPath
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_htmlmail.php
index 9ae979f..4c2754a 100755 (executable)
@@ -713,7 +713,7 @@ class t3lib_htmlmail {
 
                        // On windows the -f flag is not used (specific for Sendmail and Postfix),
                        // but instead the php.ini parameter sendmail_from is used.
-               $returnPath = (strlen($this->returnPath) > 0) ? '-f "' . escapeshellarg($this->returnPath) . '"' : '';
+               $returnPath = (strlen($this->returnPath) > 0) ? '-f ' . escapeshellarg($this->returnPath) : '';
                if($this->returnPath) {
                        @ini_set('sendmail_from', t3lib_div::normalizeMailAddress($this->returnPath));
                }
@@ -1504,4 +1504,4 @@ if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_htmlmail.php']);
 }
 
-?>
\ No newline at end of file
+?>