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

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

index d9a574b..6858496 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,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)
        * Fixed bug #9885: Add Hook to ClearCacheMenu
 
 2009-01-14  Dmitry Dulepov  <dmitry@typo3.org>
index cb113e9..b06379a 100755 (executable)
@@ -5808,7 +5808,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;