diff options
Diffstat (limited to 'module/plugins/captcha/ReCaptcha.py')
-rw-r--r-- | module/plugins/captcha/ReCaptcha.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/captcha/ReCaptcha.py b/module/plugins/captcha/ReCaptcha.py index 38ff09394..071f7f8b0 100644 --- a/module/plugins/captcha/ReCaptcha.py +++ b/module/plugins/captcha/ReCaptcha.py @@ -29,7 +29,7 @@ except ImportError: class ReCaptcha(CaptchaService): __name__ = 'ReCaptcha' __type__ = 'captcha' - __version__ = '0.25' + __version__ = '0.26' __status__ = 'testing' __description__ = 'ReCaptcha captcha service plugin' @@ -254,7 +254,7 @@ class ReCaptcha(CaptchaService): except (AttributeError, IndexError): self.fail(_("ReCaptcha challenge message not found")) - challenge_msg = re.sub(r'</?\w+?>', "", challenge_msg, 0 , re.I) + challenge_msg = re.sub(r'</?\w+?>', "", challenge_msg) image_url = urlparse.urljoin('http://www.google.com', re.search(r'"(/recaptcha/api2/payload[^"]+)', html).group(1)) |