mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-24 00:04:15 +00:00
40c7e9c9aa
ConfirmEdit was tripling the API save time, because it was parsing the entire content twice to evaluate whether the addurl trigger is hit. While I was here, I stopped using the deprecated non-Content hooks. The new hook, EditEditFilterMergedContent, does not pass an EditPage object, which means that Title or WikiPage objects need to be passed around instead. Also, since EditPage::showEditForm() cannot be called with no EditPage object, use a EditPage::showEditForm:fields hook instead. If non-wikitext content is edited, assume that the regex trigger is not hit. For further architectural details, see the associated core change: I4b4270dd868a . MW_EDITFILTERMERGED_SUPPORTS_API is a constant introduced to detect the presence of the associated core change. Also, in APIGetAllowedParams, set the allowed parameters even if we are not on the help screen. This allows API users to submit their CAPTCHA answer without it failing with an "unrecognized parameter" error. Compatibility with MediaWiki 1.21 is retained, compatibility before that is dropped. Change-Id: I9529b7e8d3fc9301c754b28fda185aa3ab36f13e |
||
---|---|---|
i18n | ||
maintenance | ||
resources | ||
.gitignore | ||
.gitreview | ||
ApiFancyCaptchaReload.php | ||
blacklist | ||
Captcha.php | ||
captcha.py | ||
CaptchaStore.php | ||
ConfirmEdit.alias.php | ||
ConfirmEdit.i18n.php | ||
ConfirmEdit.php | ||
ConfirmEditHooks.php | ||
COPYING | ||
FancyCaptcha.class.php | ||
FancyCaptcha.i18n.php | ||
FancyCaptcha.php | ||
MathCaptcha.class.php | ||
MathCaptcha.php | ||
QuestyCaptcha.class.php | ||
QuestyCaptcha.i18n.php | ||
QuestyCaptcha.php | ||
README | ||
ReCaptcha.class.php | ||
ReCaptcha.i18n.php | ||
ReCaptcha.php | ||
recaptchalib.php |
ConfirmEdit extension for MediaWiki This extension provides various CAPTCHA tools for MediaWiki, to allow for protection against spambots and other automated tools. For more information, see the extension homepage at: http://www.mediawiki.org/wiki/Extension:ConfirmEdit == Overview == The following modules are included in ConfirmEdit: * SimpleCaptcha - users have to solve an arithmetic math problem * MathCaptcha - users have to solve a math problem that's displayed as an image * FancyCaptcha - users have to identify a series of characters, displayed in a stylized way * QuestyCaptcha - users have to answer a question, out of a series of questions defined by the administrator(s) * ReCaptcha - users have to identify a series of characters, either visually or audially, from a widget provided by the reCAPTCHA service == License == ConfirmEdit is published under the GPL license. == Authors == The main framework, and the SimpleCaptcha and FancyCaptcha modules, were written by Brion Vibber. The MathCaptcha module was written by Rob Church. The QuestyCaptcha module was written by Benjamin Lees. The reCAPTCHA module was written by Mike Crawford and Ben Maurer. Additional maintenance work was done by Yaron Koren. == Changelog == = Version 1.2 Fixes bug 46132 - ConfirmEdit fatal error when using MathCaptcha and current Math extension. See <https://bugzilla.wikimedia.org/show_bug.cgi?id=46132>.