I'm looking for a way to block registrations with an email-address that includes a plus character, e.g. name+foo@domain.com
The build-in 'email domain options' don't seem to work here.
I'm looking for a way to block registrations with an email-address that includes a plus character, e.g. name+foo@domain.com
The build-in 'email domain options' don't seem to work here.
Have you tried slicing before the @ and then maybe verify if that part has a special character? I hope that helps a bit.
There are some great suggestions on this topic in the joomla forums:
[For a] quick and dirty validation on the server side, modify line 131 of libraries/src/Mail/MailHelper.php:
// 20181127 prevent plus character
// $allowed = "a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-";
$allowed = "a-zA-Z0-9.!#$%&'*\/=?^_`{|}~-";
// 20181127 end
Source: https://forum.joomla.org/viewtopic.php?f=706&t=967556&p=3549487#p3549487