When user submits a correct answer, captcha module stores $_SESSION['captcha_success_form_ids'][$form_id] unconditionally. This disables page cache for current user.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | captcha-2021759-3.patch | 928 bytes | olli |
| #1 | captcha-2021759-1.patch | 1.06 KB | olli |
Comments
Comment #1
olli commentedThis patch stores form id in session only if persistence mode requires it.
Comment #2
soxofaan commentedGood point.
but why are you using switch instead of a simple if?
Comment #3
olli commentedThanks for the review. Here is a simple if.
Comment #5
olli commented#3: captcha-2021759-3.patch queued for re-testing.
Comment #6
soxofaan commentedcommitted,
http://drupalcode.org/project/captcha.git/commitdiff/ad2d40c
thanks!