Project

General

Profile

Actions

Bug #99654

closed

spamProtectEmailAddresses not working as expected inside html address elements

Added by Axel Hahn almost 2 years ago. Updated about 1 month ago.

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 &amp; 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 #1

Updated by Axel Hahn almost 2 years ago

  • Description updated (diff)
Actions #2

Updated by Axel Hahn over 1 year ago

Same behavior in Typo3 v11

Actions #3

Updated by Benjamin Franzke about 1 year ago

  • Parent task set to #99669
Actions #4

Updated by Benjamin Franzke about 1 year ago

  • Parent task deleted (#99669)
Actions #5

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.

Actions #6

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 &amp; 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?

Actions #7

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

Actions #8

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 ...

Actions #9

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.

Actions

Also available in: Atom PDF