Bug #89910

spamProtectEmailAddresses doesn't work as expected with value "ascii"

Added by Florian Rival 12 months ago. Updated 11 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2019-12-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In the documentation, it's written that when you set :

config.spamProtectEmailAddresses = ascii

every character of the “mailto:” address will be translated to a Unicode HTML notation like this :

<a href="mailto:&#97;&#64;&#98;&#46;&#99;">xxx(at)xxx.com</a>

But when I set this parameter, email links are not encrypted :

<a href="mailto:l.devedeux@terresinovia.fr">l.devedeux(at)terresinovia.fr</a>

If I set another value, for example :

config.spamProtectEmailAddresses = -2

it works as expected : encryption + JS.


Related issues

Related to TYPO3 Core - Feature #90044: Remove spamProtectEmailAddresses with option "ascii"New2020-01-02

Actions
#1

Updated by Tizian Schmidlin 11 months ago

Hello Florian,

did you check the source code with the element browser or did you open the take a look at the source code directly? Oftentimes the element browser tries to help by replacing such characters with human readables which then leads to misinterpretation of what is really going on.

In any case, ascii should not be used (see #90044) for details.

Why did you want to use the "ascii" option in the first place?

Regards
Tizian

#2

Updated by Florian Rival 11 months ago

Hi Tizian,

To answer your question, I use the "ascii" option because it's the default option and it doesn't need JS to work and whenever I develop a site I tried to remove all unnecessary code.

But I looked the issue https://forge.typo3.org/issues/90044 and agree with this so I won't use this option anymore.

Thx for your help
Florian

#3

Updated by Georg Ringer 9 months ago

  • Related to Feature #90044: Remove spamProtectEmailAddresses with option "ascii" added

Also available in: Atom PDF