Patch for small bug in the captcha_admin() function.
The bug does not do anything wrong, it just spills CPU: drupal_get_form('captcha_admin_settings', $form_id) is executed twice.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | captcha_admin_small_bug_2.patch | 1016 bytes | soxofaan |
| #1 | captcha.module_5.patch | 701 bytes | robloach |
| captcha_admin_small_bug.patch | 808 bytes | soxofaan |
Comments
Comment #1
robloachWould removing it make more sense since that same exact line exists right after the switch?
I attached a patch too.
Comment #2
soxofaan commentedI wouldn't do that for clarity of the code in the switch construct. The statements are indeed the same, but the context is a bit different (look for example at the comments).
Actually, it would be even better like this:
(now the statements are different)
see attached patch
Comment #3
soxofaan commentedThis issue will also be solved when the patch from http://drupal.org/node/169853 will be committed
Comment #4
robloachMoved over there... Thanks!