I agree, this should be fixed. The module is not installable now.
Rerolled for 10.2.x
@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.
Attached a new temporary patch for latest version.
Was running into this issue as well. MR looks good to me, thanks!
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.
corneboele → created an issue.