* $wgSpamRegex now matches the edit summary and page move descriptions in
addition to body text.
Oh no!
I must not apply my rules also to the edit summary!
How can I separate back out the functionality, without hacking more
than just my LocalSettings.php?
/** Similarly you can get a function to do the job. The function will be given
* the following args:
* - a Title object for the article the edit is made on
* - the text submitted in the textarea (wpTextbox1)
* - the section number.
[and there's more items that are not mentioned, see EditPage.php]
* The return should be boolean indicating whether the edit matched some evilness:
* - true : block it
* - false : let it through
*
* For a complete example, have a look at the SpamBlacklist extension.
*/
$wgFilterCallback = false;
OK, I got as far as
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SpamBlacklist/RE…
before my head started to spin.
Can somebody please tell me how to regain the previous functionality?
I assume I should remove my $wgSpamRegex, and instead
use $wgFilterCallback with an array of my patterns, testing only on
wpTextbox1.
Is there any simple example other than
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SpamBlacklist/
Thanks.