Last modified: 2013-04-21 00:52:23 UTC
If $wgSpamRegex is triggered, be sure to return the editing contents to the user in a box that he can keep on editing. Don't just expect him to know or be told to hit the BACK key, or expect BACK will always work in such situations. (Otherwise even when just previewing an edit, one could just tell the user "This is a preview. To continue editing just hit BACK.") Anyway, we are not finished editing. We need to alter what was seen as a spam word. But instead our hard work is thrown away and we get a spam warning with no box with our content to continue our editing. Also the user thinks "You didn't warn me when I hit Preview. Now you spitefully threw away my work when I hit Save, with no edit box to continue my hard work."
The current solution WORKSFORME. When the spam detector is triggered the editor gets: Spam protection filter The text you wanted to save was blocked by the spam filter. This is probably caused by a link to a blacklisted external site. The following text is what triggered our spam filter: http://youtu.be Differences (...) Your text (...) You can click back or you can copy your text and do whatever with it. Good enough.