Last modified: 2008-12-20 02:13:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T18611, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16611 - When using $wgCaptchaClass = 'MathCaptcha' Captcha does not appear
When using $wgCaptchaClass = 'MathCaptcha' Captcha does not appear
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ConfirmEdit (CAPTCHA extension) (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: WP.Wuzur
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-10 17:35 UTC by WP.Wuzur
Modified: 2008-12-20 02:13 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Patch (486 bytes, patch)
2008-12-10 17:35 UTC, WP.Wuzur
Details

Description WP.Wuzur 2008-12-10 17:35:42 UTC
Created attachment 5571 [details]
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.
Comment 1 Brion Vibber 2008-12-20 02:13:04 UTC
Applied in r44827 -- also fixed the incorrect field name for the answer, so it actually works now. :)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links