[Mediawiki-l] Spam Newbie Question - code check

Rob Church robchur at gmail.com
Tue May 2 20:26:32 UTC 2006


On 02/05/06, John Bidder <john at highlanddrive.wanadoo.co.uk> wrote:
> My local settings looks like this:
>
> /** Text matching this regular expression will be recognised as spam
> * See http://en.wikipedia.org/wiki/Regular_expression */
> $wgSpamRegex='/display\s*:\s*none/i';
> $wgSpamRegex="/overflow:auto/";
> $wgSpamRegex="/overflow: auto/";
> $wgSpamRegex="/overflow\s*:\s*auto/";

You're overwriting the value of the variable each time, so the last is
the only one which takes effect. Try something like

$wgSpamRegex = '/(display\s*:\s*none|overflow\s*:\s*auto)/';


Rob Church



More information about the MediaWiki-l mailing list