The attached patch makes captcha.module revert to the old arithmetic question if the GD image library is not available.
It also splits off the captcha form and its verification into separate functions, so that other modules can use captchas without knowing the internals of captcha.module. (I am currently writing a filter to protect email addresses from harvesting.)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | captcha_0.patch | 5.79 KB | kps |
| captcha.patch | 5.76 KB | kps |
Comments
Comment #1
kps commentedPlease substitute the attached patch. (Tabs crept into the first one.)
Comment #2
kps commentedNever mind; I have a better implementation -- details to follow.
Comment #3
kps commentedSee node/20653 instead.