When an email address is supplied pre-filled in a forms input textbox, spamspan spots the original email embedded as a "value" and edits it as if it were normal text. In so doing it breaks the form entirely.
<input type=text name="email" value="email@example.com">
becomes the following after spamspan:
<input type=text name="email" value="<span class="spamspan"><span class="u">email</span> [at] <span class="d">example [dot] com</span></span>">
In general I believe spamspan should leave form-presented email addresses alone.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | spamspan-inputfield-bug.jpg | 5.92 KB | radek76 |
Comments
Comment #1
radek76 commentedI would also appreciate if the spamspan left out the form elements
Comment #2
peterx commentedSpamspan could exclude email addresses enclosed in
value="". Spamspan uses regular expressions to identify email addresses and a regex expert should be able to exclude something as specific as this request. If a regex expert wants to tackle this, change the release to 7 and reopen this issue.Comment #3
peterx commentedNo D6 maintainer. I do not have D6 sites. Please reopen this in D7 if still required. Then find a maintainer to backport from D7 to D6.
Comment #4
radek76 commentedI made now testing with the latest versions and everything works correctly - Drupal 6.33, SpamSpan 6.x-1.6 and Webform 6.x-3.21