Page MenuHomePhabricator

Title black list doesn't work
Closed, InvalidPublic

Description

Author: vinhtantran

Description:
As you can see in the URL, we have banned many bad words, but newly created users still can create articles like "Fuck" or stuff like that.


Version: unspecified
Severity: normal
URL: http://vi.wikipedia.org/wiki/MediaWiki:Titleblacklist

Details

Reference
bz13760

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:07 PM
bzimport added a project: TitleBlacklist.
bzimport set Reference to bz13760.
bzimport added a subscriber: Unknown Object (MLST).

overlordq wrote:

think this INVALID. the regex doesn't match just shit/fuck it needs "is (a|an)" in there.

vinhtantran wrote:

but en.wiki use the same syntax. Are they wrong, too?

overlordq wrote:

No it's meant to block pages like "(Name) is a ass", not title's containing curse words.

If you wanted to block a bunch of bad words from being used--as opposed to a phrase, suck as "So and so is a XYZ"--I'd go for this:

\b(bitch|fuck)\b

And just put (within the parentheses) a vertical bar between each term. This serves as a logical "OR" to the regex engine.