Feature #20140
closedExtending spamProtectEmailAddresses / hook request
0%
Description
It would be useful to have a redirect functionalité in spamProtectEmailAddresses.
What I mean is that mailto links could be replace by links to a contact form page. The email address can be encrypted and passed as a get parameter.
Exemple:
mailto:aaaaaa@bbb.cc
would be replaced by :
index.php?id=33&contact=cGllcfJlLmNhc3Gvbmd1YXlBbWRlaYUuZ291di5xYc5jFQ
The contact form page (33 in exemple) would use an extension that use the incoming parameter to send the form content.
I already posted an extension to implement this functionality : ig_mailto_redirect
Currently, I am using an XCLASS. It would be nice to have a hook in tslib_cObj:getMailto function that would give us the possibility to implements new spam protection methods without modifying the core.
From "ig_mailto_redirect" extension documentation. This is the kind of configuration that I would like to be able to do.
config.spamProtectEmailAddresses = redirect
config.spamProtectEmailAddresses {
redirectId = 15
redirectParam = email
redirectEncrypt = 1
}
(issue imported from #M10623)