Fixed bug #10143 spamProtectEmailAddresses_atSubst does not work correctly if linktex...
authorSteffen Kamper <info@sk-typo3.de>
Wed, 14 Jan 2009 21:15:39 +0000 (21:15 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Wed, 14 Jan 2009 21:15:39 +0000 (21:15 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@4718 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_content.php

index cb22cd5..5630c98 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-14  Steffen Kamper  <info@sk-typo3.de> 
+
+       * Fixed bug #10143 spamProtectEmailAddresses_atSubst does not work correctly if linktext contains email address with uppercase charachters (thanks to Helmut Hummel)
+
 2009-01-14  Dmitry Dulepov  <dmitry@typo3.org>
 
        * Fixed bug #10116: Remove/protect adodb testfiles (thanks to Marcus Krause)
index dc5eafa..92fad44 100755 (executable)
@@ -5666,7 +5666,7 @@ class tslib_cObj {
                                        $lastDotLabel = $lastDotLabel ? $lastDotLabel : '(dot)';
                                        $spamProtectedMailAddress = preg_replace('/\.([^\.]+)$/', $lastDotLabel.'$1', $spamProtectedMailAddress);
                                }
-                               $linktxt = str_replace($mailAddress, $spamProtectedMailAddress, $linktxt);
+                               $linktxt = str_ireplace($mailAddress, $spamProtectedMailAddress, $linktxt);
                        }
                } else {
                        $mailToUrl = $GLOBALS['TSFE']->absRefPrefix.$GLOBALS['TSFE']->config['mainScript'].$initP.'&jumpurl='.rawurlencode($mailToUrl).$GLOBALS['TSFE']->getMethodUrlIdToken;