in2code-de / lux

Living User eXperience - LUX - the Marketing Automation tool for TYPO3.

Home Page:https://www.in2code.de/produkte/lux-typo3-marketing-automation/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

config.spamProtectEmailAddresses_atSubst is not working if lux is installed

fixpunkt-systeme opened this issue · comments

config.spamProtectEmailAddresses_atSubst and config.spamProtectEmailAddresses_lastDotSubst are not working if the extension Lux is installed.
I guess, the Lux Link Listener overwrites the link build by the EmailLinkBuilder in the TYPO3 core.

I can confirm that also

config.spamProtectEmailAddresses = 10
config.spamProtectEmailAddresses_atSubst = @<span hidden>no spam</span>

does not replace the visible email address (the link works as expected), if the address is generated like
<f:link.email email="service@in2code.de"/>
on the latest TYPO3 11 and the latest LUX version.

I played a bit with it and it seems that this is not an issue of LUX but more in TYPO3 itself. The error is only reproducable in TYPO3 11 (and not in 10).
If the hook is registered (not even used), the email links are broken at once.
Example hook usage:

// hook registration in ext_localconf.php
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typoLink_PostProc'][]
            = \In2code\Lux\Hooks\LuxLinkListenerLinkhandler::class . '->postProcessTypoLink';

It makes no difference if the target function simply does nothing with a return

I also searched forge for the problem, and found an existing issue: https://forge.typo3.org/issues/98606 (I also described the problem there)

Should be fixed as far as I see in forge now.