Should ReCAPTCHA Mailhide Hide a href mailto: addresses also?
VValdo - September 5, 2007 - 04:45
| Project: | reCAPTCHA |
| Version: | 5.x-2.3 |
| Component: | reCAPTCHA Mailhide |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hey, I don't know if maybe mailhide is clashing with another filter or something, but if I type a raw address in the text of a story node, say like test@example.com, I get the mailhide feature (which rocks by the way).
But if I enclose the mail as a link:
<a href="mailto:test@example.com">testing</a>It doesn't seem to see this as an email to be hidden. This would be great because I have a lot of very old content I've converted to drupal that enclosed emails in this fashion... (from the days before text filters) ... It would be cool if the world "testing" above could link to the mailhidden address instead...
Don't know if this is a bug, a feature request, a fixed or a won't fix... but I'd love it if it worked...
Thanks in advance!
W

#1
So, before the reCAPTCHA Mailhide filter goes through, replace tags that reference mailto:// protocols with just the email address. The Mailhide would than run on it, replacing the email addresses. Neat idea, and it would allow reCAPTCHA Mailhide to run after/with the URL/Email filter. The tricky thing to do would be to write the regex for it.
#2
exactly.... and yes the regular expression will be a bitch to get right I'm sure, but it would be a great feature that would go a long way with the many years of imported content... but I bet someone has already written the regex code to extract the "meat" out of an http:// mailto and then it's just a matter of switching the elements around.. (probably easier said than done :) )
W