Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email link creation with active Spam-Protection #22

Open
chriwo opened this issue Jul 31, 2023 · 0 comments
Open

Email link creation with active Spam-Protection #22

chriwo opened this issue Jul 31, 2023 · 0 comments

Comments

@chriwo
Copy link
Collaborator

chriwo commented Jul 31, 2023

The TypoLinkStringProcessor does not generate links from e-mail addresses in TYPO3 v11.5 if spam protection is activated via TypoScript.

In various projects, the configuration for spam protection is done in TypoScript using

config {
  spamProtectEmailAddresses = 2
  spamProtectEmailAddresses_atSubst = @
}

With this setting, the TypoLinkStringProcessor no longer returns a link. If this setting is deactivated, the link for an e-mail address is generated correctly, but the e-mail address is in plain text within the HTML code.

The TypoLinkStringProcessor would have to check whether it is an email address and then call the getMailTo() function in the ContentObjectRenderer. The return array of the TypoLinkStringProcessor should contain the additional indices data-mailto-token and data-mailto-vector.

Used versions:

  • TYPO3 v11.5.29/v11.5.30
  • EXT-pti: dev-main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant