Bug #99654
closedspamProtectEmailAddresses not working as expected inside html address elements
0%
Description
The Email obfuscation is not working when it is used in html <address> tags.
Example: (Address tag created by the RTE Editor)
<address class="address">
<p class="address-title"><strong>Name</strong></p>
<p class="address-address">Street<br />
Zip & City</p>
<p class="address-phone">+49 1234 456-7890</p>
<p class="address-fax">+49 1234 456-7891</p>
<p class="address-email"><a href="mailto:john.doe@example.com">john.doe@example.com</a></p>
<p class="address-www"><a href="http://www.example.com">www.example.com</a></p>
</address>
Is still machine readable:
<a href="mailto:john.doe@example.com">john.doe@example.com</a>
whereas a snippet outside the address tag:
<p><a href="mailto:john.doe@example.com">john.doe@example.com</a></p>
becomse obfuscated:
<a href="javascript:linkTo_UnCryptMailto(%27ocknvq%2Clqjp0fqgBgzcorng0eqo%27);">john.doe(at)example.com</a>
The following typoscript settings are used:
config.spamProtectEmailAddresses = 2
config.spamProtectEmailAddresses_atSubst = (at)
Updated by Uwe Wiebach 9 months ago
I have noticed the same thing (TYPO3 v11). Also, internal links within the address tag are not parsed.
Updated by Georg Ringer 6 months ago
- Status changed from New to Needs Feedback
tested this in v13 with the following content inside the bodytext field
<address class="address"> <p><strong>Name</strong></p> <p><a href="t3://page?uid=252">Street</a><br />Zip & City</p> <p>+49 1234 456-7890</p> <p>+49 1234 456-7891</p> <p><a href="mailto:john.doe@example.com">john.doe@example.com</a></p> <p><a href="http://www.example.com">www.example.com</a></p> </address>
(added directly in the DB) and it works fine. can you share your configs and test it without any modifications?
Updated by Georg Ringer 5 months ago
- Status changed from Needs Feedback to Closed
closing issue because lack of feedback. if the issue is still valid for you, please contact me via slack or create a new issue and reference this one
Updated by Uwe Wiebach about 2 months ago ยท Edited
I found a fix - at least for my case (Bootstrap Package v14, TYPO3 v11). I added this line of TypoScript to make it work:lib.parseFunc_RTE.externalBlocks.address < .div
So I guess this is/was an issue of the Bootstrap Package extension not having the TypoScript correctly...
EDIT: Looking at the configuration of the div tag, I guess the one thing missing here was the property callRecursive
...
Updated by Axel Hahn about 1 month ago
Thank you, Uwe.
I just tried your suggestion with version 10 and 12, but it does not change anything over here.
Georg, I'm sorry. You just didn't get any feedback here because we haven't migrated to version 13 yet.