reCaptcha mailhide doesn't find emails inside of html tables
Stevenj007 - June 3, 2008 - 16:49
| Project: | reCAPTCHA |
| Version: | 6.x-1.0 |
| Component: | reCAPTCHA Mailhide |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
The mailhide finds emails without markup. Mailhide doesn't find emails inside of html tables. The input parsing order doesn't make a difference.

#1
The following line wasn't replaced by a mailhide:
<td>mail@domain.tld</td>A simple solution is to add spaces before and after the mail-address:
<td> mail@domain.tld </td>A better solution is to replace the following line of the modules/recaptcha/recaptcha_mailhide.module:
$text = preg_replace_callback("!(<p>|<li>|<br\s*/?>|[ \n\r\t\(])([A-Za-z0-9._-]+@[A-Za-z0-9._+-]+\.[A-Za-z]{2,4})([.,?]?)(?=(</p>|</li>|<br\s*/?>|[$with the following line (added the
<td>and</td>tags to the regex):$text = preg_replace_callback("!(<p>|<li>|<br\s*/?>|<td>|[ \n\r\t\(])([A-Za-z0-9._-]+@[A-Za-z0-9._+-]+\.[A-Za-z]{2,4})([.,?]?)(?=(</p>|</li>|<br\s*/?>|</td>|[$#2
Neither solution worked for me. See here:
http://txgifted.org/~txgift5/texas-parent-affiliate-groups-0