Account created on 27 August 2013, about 11 years ago
#

Recent comments

🇳🇱Netherlands corneboele

I agree, this should be fixed. The module is not installable now.

🇳🇱Netherlands corneboele

@Anybody just that it applies to 1.12/2.x latest. But the patch is imo not the right solution, see #4. I think we need to fix that not a font path is given to `_image_captcha_get_font_uri`, but a token.

🇳🇱Netherlands corneboele

Attached a new temporary patch for latest version.

🇳🇱Netherlands corneboele

Was running into this issue as well. MR looks good to me, thanks!

🇳🇱Netherlands corneboele

I'm encountering the same issue.

Yes,
$font = $fonts[array_rand($fonts)];
returns only one.

But
$font = _image_captcha_get_font_uri($font);
doesn't.

It returns an array of all fonts available, because in _image_captcha_get_font_uri it expects a token, but a font path is provided.

The fix works, even on 1.x, but is probably not the correct solution.

Production build 0.71.5 2024