Closed (fixed)
Project:
reCAPTCHA
Version:
5.x-2.2
Component:
reCAPTCHA Mailhide
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Aug 2007 at 01:26 UTC
Updated:
10 Sep 2007 at 21:32 UTC
If you enable mailhide and forget to set the keys, the first time mailhide is invoked, the library will die with an unfriendly error message. If, as happened to me when testing, an affected email address is on the site's front page, you can be entirely locked out and forced to disable the mailhide module directly from the database.
This patch checks the public and private keys before invoking the recaptcha library and fails gracefully if zero-length strings are detected.
| Comment | File | Size | Author |
|---|---|---|---|
| recaptcha-mailhide-die.patch | 2.11 KB | kthagen |
Comments
Comment #1
robloachSounds great! Once I shift the keys into its own settings, I'll start work on this.
One note, empty is what you were looking for ;-) ...
I'll stick this in once the settings page is up.
Comment #2
kthagen commentedOh yeah (thwacking forehead). I was just pasting the logic from the library, and that's how it's written there.
Comment #3
robloachExcellent!
Comment #4
(not verified) commented