Actions
Bug #99654
closedspamProtectEmailAddresses not working as expected inside html address elements
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2023-01-20
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
spamProtectEmailAddresses
Complexity:
Is Regression:
Sprint Focus:
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)
Actions