Page MenuHomePhabricator

When using $wgCaptchaClass = 'MathCaptcha' Captcha does not appear
Closed, ResolvedPublic

Description

Author: WP.Wuzur

Description:
Patch

If $wgCaptchaClass is set to MathCaptcha the captcha does not appear as the regex in line 45 of MathCaptcha.class.php matches almost the whole img-tag. This results in not showing the captcha. Using the regex /alt=".*?"/ with a non-greedy instead of /alt=".*"/ with a greedy operator would help which do not remove the scr-attribute.


Version: unspecified
Severity: major

Attached:

Details

Reference
bz16611

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:25 PM
bzimport set Reference to bz16611.

Applied in r44827 -- also fixed the incorrect field name for the answer, so it actually works now. :)