Bug #17294
closedspamProtectEmailAddresses_atSubst is not recognized correctly
0%
Description
after update from 4.0.6 spamProtectEmailAddresses_atSubst doesn't work anymore.
the solution suggestet in http://bugs.typo3.org/view.php?id=3985 won't work with 4.1.1.
(issue imported from #M5602)
Files
Updated by Oliver Hader over 17 years ago
Could you please post the part of your TypoScript with the spamProtect...-things? Thanks in advance!
Updated by wini2 no-lastname-given over 17 years ago
the two lines from the ts-setup worked well with 4.0.6
config.spamProtectEmailAddresses = 2
config.spamProtectEmailAddresses_atSubst = (at)
i also tried other numbers (from -10 to 10) - without success. it's likely that the problem lies with class.tslib_content.php. by replacing the file (in 4.1.1) with the one from version 4.0.6, the spamprotection works fine.
Updated by Oliver Hader over 17 years ago
I guess you had a TypoScript like this:
10 = TEXT 10.value = [b]john@doe.com[/b] 10.typolink.parameter = john@doe.com
In this case (that the link text defined in 10.value is wrapped by something), the typolink wasn't rendered correctly. See the attached patch which should solve this problem.
Only the address used as link will be substitued, thus the following example doesn't work - the "write@mailto.org" won't be changed because the expected mail adresse to take care of is "john@doe.com".
10 = TEXT 10.value = write@mailto.org 10.typolink.parameter = john@doe.com
Updated by wini2 no-lastname-given over 17 years ago
thanks for your instant help. your patch works fine.
Updated by Helmut Hummel over 17 years ago
Same Problem here, but the Patch is working well, thx for that!
Updated by Steffen Kamper over 17 years ago
same problem with 4.1.1
thx for the patch - works perfect for me ;-)
Updated by Christian over 17 years ago
For me the patch does not work. I found out that the varible $mailAddress is empty if i do an echo $mailAddress. Which function calls this function?
Updated by Oliver Hader over 17 years ago
Christian, the function is called in class.tslib_content.php. Could you please post your CONFIG-Part of TypoScript? Thanks!
Updated by Christian over 17 years ago
Sorry but I can't reproduce it any more. Now I have the correct address in the variable. And every thing works. I changed nothing except that I manually added the patch to the file. I did a lot of echo output to find out why it does not work and suddenly it worked. I don't know what was happening possibly some sort of caching?
Updated by Steffen Kamper over 17 years ago
i wondered, because the patch reads the configuration and replace the address in the right way, so in my opinion there is no way to fail.
Updated by Oliver Hader almost 17 years ago
- TYPO3_4-1 (rev. 2785)
- Trunk (rev. 2786)