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.)

CommentFileSizeAuthor
#1 captcha_0.patch5.79 KBkps
captcha.patch5.76 KBkps

Comments

kps’s picture

StatusFileSize
new5.79 KB

Please substitute the attached patch. (Tabs crept into the first one.)

kps’s picture

Never mind; I have a better implementation -- details to follow.

kps’s picture

See node/20653 instead.