I am facing a problem with Flow together with ConfirmEdit, especially the ReCaptchaNoCaptcha subextension.
I am not sure if this is an issue with Flow or with ConfirmEdit so I am pinging both of the projects.
The issue is only presented while using the ReCaptchaNoCaptcha feature, it is not present with using ConfirmEdit:QuestyCaptcha.
If I enable ReCaptchaNoCaptcha and try to post a Flow discussion the Captcha is not displayed when pressing the submit button. A message saying "Please insert the Captcha" is displayed but nothing after that.
Here is an example:
I tried to do some debugging and this is what I figured out
Part of the Captcha feature is inserted inside a nonscript tag and its HTML entities are escaped like so:
This will cause them to don't get rendered.
I tried to hack my way in the code but not much changed, I managed to display the Captcha feature but validation was not working.
How to reproduce
- Install Flow and ConfirmEdit
- Enable ConfirmEdit:ReCaptchaNoCaptcha
- Create a Flow post/discussion
- Failed Workaound **
A workaround I tried was to disable the captcha on flow/discussion pages but that did not work too.
The ConfirmEdit docs provide $wgCaptchaTriggersOnNamespace[NS_TALK]['edit'] = false; to disable Captcha on a specific namespace. I then tried to
$wgCaptchaTriggersOnNamespace[NS_TALK]['edit'] = false; $wgCaptchaTriggersOnNamespace[NS_TALK]['create'] = false; $wgCaptchaTriggersOnNamespace[NS_TALK]['addurl'] = false;
but that did not change anything. On this one I have no idea right now. Some months ago (so I could remember wrong) I did some debugging on this issue and somehow I remember that on Flow pages the namespace was not NS_TALK but NS_MAIN, but this was many months ago, so it could be complerely wrong.
Thanks for the help