-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Improve Email Social Icon with automatic "mailto:" and obfuscation #21876
Comments
Feels like a great little enhancement to me. I can't see you would add anything that isn't a mailto there, or at least that doesn't seem to be as common. |
@karmatosed makes a good point that it would be worth testing for the presence of an something like this pseudo code logic for testing the submitted "email"
|
Linking a page with a contact form could be a use case for the mail icon with a http:// link. |
Hi, @mrwweb Created PR to handle the mailto prefixes. The obfuscation probably should be handled by anti-spam plugins. |
Awesome! Thanks, @Mamaduka
Given that |
That's a good point, @mrwweb. I will re-open this issue since obfuscation is still missing from the Social block. |
This is an offshoot of #21733
Is your feature request related to a problem? Please describe.
At present, the default placeholder for all social icons is the same: "Enter Address". This is a unique problem for the email icon:
Someone who reads that as "enter email address", would enter just their email address. Doing so results in appending an email with "http://".
This would result in an invalid link going to "http://info@example.com". I suspect there are now many links like this due to this problem. (See also: #21699)
Describe the solution you'd like
Similar to #19425, the icon should handle automatically appending "mailto:" if the user does not enter it.
Going further, it would be ideal to obfuscate the emails via an
antispambot()
-like method to offer at least some level of spam protection. There's no reason that couldn't be done automatically.The text was updated successfully, but these errors were encountered: