Closed GoogleCodeExporter closed 9 years ago
Committed the new version as r3236 (branch 3.2), r3237 (trunk/)
Original comment by ctrlal...@gmail.com
on 6 Jan 2013 at 6:19
I've encountered a small bug which surfaces if the application code calls
TReCaptcha::regenerateToken() in a callback on a freshly shown or created
TReCaptcha control. If this happens the recaptcha ajax library throws a
"ReCaptchaState is undefined" exception (which seems to be a bug in the library
itself, according to several posts in support forums), and fails to render the
captcha control.
To avoid this I've patched the TReCaptcha control to check for the existence of
said ReCaptchaState variable on the client side, and if it's not present, it
will simply skip the call to the token regenerator method. This shouldn't be a
problem as if ReCaptchaState is not defined then there was no captcha control
on the page previously, and thus a new captcha with a fresh token-challenge
pair will be created/loaded anyway.
Original comment by google...@pcforum.hu
on 7 Jan 2013 at 5:17
Attachments:
Committed as r3243, thank you.
Original comment by ctrlal...@gmail.com
on 7 Jan 2013 at 3:45
Original issue reported on code.google.com by
google...@pcforum.hu
on 5 Jan 2013 at 12:54Attachments: