From b2911f4fc37dfeb7c4b6ece610c15238dbf5214d Mon Sep 17 00:00:00 2001 From: kaiyou <pierre@jaury.eu> Date: Thu, 24 Sep 2020 14:49:45 +0200 Subject: [PATCH] Fix HTML encoding of captcha strings --- hiboo/captcha/captcha.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hiboo/captcha/captcha.py b/hiboo/captcha/captcha.py index 0b93874f..9b626428 100644 --- a/hiboo/captcha/captcha.py +++ b/hiboo/captcha/captcha.py @@ -64,8 +64,7 @@ class ImageCaptchaField(fields.CaptchaField): output = base64.b64encode(png.getvalue()).decode("ascii") return widgets.HTMLString( '<p><img src="data:image/png;base64,{}"></p>'.format(output) - + super(ImageCaptchaField, self).__call__(**kwargs) - ) + ) + super(ImageCaptchaField, self).__call__(**kwargs) def make_char(self, char, rotation_range=15): """ Renders a character -- GitLab