Victor Vasiliev
52bab2daed
(bug 36939) Introduce a way to limit username filter to certain sources.
...
* Name all sources and track them inside the entries. This should be
fully backwards-compatible with previous configuration format,
since numbers may be a legitimate source names as well.
* Introduce $wgTitleBlacklistUsernameSources as a variable which allows
to specify which sources may be used for filtering usernames.
Change-Id: Ia2702370c85f317c763e345c8f92cb38e23e4196
2013-02-20 22:54:25 -08:00
Siebrand Mazeland
1f8ccafc94
Remove comment and update docs.
...
Change-Id: I3e80acedeb008ec8f55c8c4f6d6886ce9ae4dfb3
2012-09-24 02:24:32 -07:00
Siebrand Mazeland
16f32456ad
Maintenance for TitleBlacklist extension.
...
* Use Message class.
* Remove trailing whitespace from 'titlewhitelist'.
* stylize.php.
* Update .gitignore.
Change-Id: Ie78fa25816808b0a695cc20630097326fb4cf705
2012-09-18 15:57:57 +02:00
Sam Reed
028cf69054
Documentation
...
Swap a lot of "@returns" to "@return"
2011-10-13 18:44:26 +00:00
Tim Starling
b0b04747eb
Fix for r76344: you can't access $wgUser during the CentralAuthAutoCreate hook, because it's the same object that invoked CentralAuth via UserLoadFromSession, after mLoadedItems is set to true but before any data is initialised. The calling code in CentralAuth does permissions checks correctly, by creating a new User object for the anonymous user who is logging in. That's what I've implemented here too.
...
Most of the changes here are just propagating the anonymous user object through the call stack.
2011-09-22 06:10:45 +00:00
Sam Reed
a851665ab2
<preilly> PHP fatal error in /usr/local/apache/common-local/php-1.18/extensions/TitleBlacklist/TitleBlacklist.list.php line 326:
...
Fixed in 1.18wmf1 and trunk
2011-09-20 00:11:20 +00:00
Sam Reed
50b14054c7
Tidy up documentation
2011-08-22 20:37:26 +00:00
Alexandre Emsenhuber
661285c2db
Added TitleBlacklist::singleton() to get an instance of the TitleBlacklist instead of having to use $wgTitleBlacklist and call efInitTitleBlacklist()
2011-07-30 15:13:28 +00:00
Sam Reed
3121f8e728
Whitespace, braces, documentation
2011-04-12 00:16:04 +00:00
Sam Reed
4ae9c4dfaa
Invert match call for whitelist also
...
Add missing false to return documentation
2011-03-23 16:30:49 +00:00
Sam Reed
939bf7f912
Followup r84575, bug 27470
...
Inverse all the booleans in matches
Previous fix was naieve, and just ended up picking the first regex and dieing with that
2011-03-22 23:07:21 +00:00
Sam Reed
3f4d451d20
Followup r76344, fix another inversed logic
...
- if( !$item->userCan( $title, $wgUser, $action ) ) {
+ if( !$item->matches( $title, $action ) ) {
Fix some trailing whitespace also
Related to bug 27470 and bug 28166
2011-03-22 22:30:23 +00:00
Sam Reed
c8d5112717
Documentation, braces, unused globals
2011-03-17 22:20:01 +00:00
Sam Reed
4db154c598
Trim/fix whitespace
2011-03-14 23:44:41 +00:00
Sam Reed
d1b3021d6f
TitleBlacklist
...
Fix undefined $user
Documentation, braces
2011-03-14 20:51:13 +00:00
Victor Vasiliev
3219bf6dcb
Title blacklist:
...
* (bug 22141) Introduce a separate user right for overriding title blacklist on account creations only
* Some minor refactorings
2010-11-08 21:55:05 +00:00
Sam Reed
ba60d29a9a
Another big cull on unused variables and such
2010-10-29 21:55:29 +00:00
Alexandre Emsenhuber
c52acec944
Big changes to extensions' documentation:
...
* changed all @addtogroup to @ingroup
* added some @file where needed
* changed some @package/@subpackage to @ingroup
2010-06-06 15:12:22 +00:00
Alexandre Emsenhuber
650409f2a3
* (bug 18822) Title::newFromString() doesn't exist; changed to Title::newFromText()
2009-05-17 14:12:38 +00:00
Fran Rogers
97a9812b69
Fixes for problems mentioned in r38967
2008-08-09 01:54:39 +00:00
Brion Vibber
1c2794eb00
Revert r38636 and following for now, doesn't work at present.
...
Aug 8 23:22:25 srv35 httpd[5547]: PHP Fatal error: Using $this when not in object context in /home/wikipedia/common/php-1.5/extensions/TitleBlacklist/TitleBlacklist.list.php on line 98
Fatal error: Call to private method TitleBlacklist::parseBlacklist() from context 'TitleBlacklistHooks' in /Library/WebServer/Documents/trunk/extensions/TitleBlacklist/TitleBlacklist.hooks.php on line 90
2008-08-08 23:26:44 +00:00
Aaron Schulz
f8bb839af7
this is static
2008-08-08 23:24:19 +00:00
Fran Rogers
129796f76b
Added username blacklist capabilities to TitleBlacklist. Since the
...
UsernameBlacklist extension is unmaintained, rather brittle, and only
supports a single local blacklist, and also on most wikis both
blacklists will be closely intertwined if not identical, it seems
logical that TitleBlacklist take over both functions. :)
2008-08-05 15:57:10 +00:00
Ilmari Karonen
d28982948c
Disallow angle brackets within options, to avoid breaking regexps which contain '<'.
2008-05-29 20:23:05 +00:00
Ilmari Karonen
afac00b084
Remove verifyUpload hook, just check images using the normal userCan hook. This closes a loophole that allowed creation of blacklisted image pages via normal editing. Note that combining this version with MediaWiki revisions prior to r35167 breaks the 'reupload' option and produces uninformative output for blacklisted uploads.
2008-05-22 01:35:48 +00:00
Ilmari Karonen
f4ef120e59
Add new option "moveonly" to forbid moves but allow ordinary creation (should be good against pagemove vandalism).
2008-05-21 23:23:24 +00:00
Ilmari Karonen
ce6ce05dfa
Add non-capturing parentheses to ensure even expressions like "Foo|Bar" get fully anchored.
2008-05-21 23:00:39 +00:00
Bryan Tong Minh
b89489091c
(bug 13803) Add 'reupload' parameter to allow reuploads of existing blacklisted images.
2008-04-20 21:21:16 +00:00
Victor Vasiliev
2381cc0693
* Use this (see prev commit) hook in the TitleBlacklist
...
* Fix profiling
2008-01-14 13:52:05 +00:00
Victor Vasiliev
b7bc8af616
TitleBlacklist:
...
* Add title whitelist
* Add profiling
* Make cache version check really work
2008-01-08 18:00:59 +00:00
Brion Vibber
f74f0713fd
* (bug 12483) Transform '_' to ' ' in blacklist regexes for convenience
2008-01-03 00:58:52 +00:00
Brion Vibber
75527ed14b
Use wfMemcKey() rather than hardcoding database name.
2007-12-31 23:02:22 +00:00
Niklas Laxström
648a7b824a
* Converted to UTF-8
2007-12-31 10:03:10 +00:00
Brion Vibber
d97448856c
* Use UTF-8 option on regex matches, not just validation. Fixes case-insensitivity and character class matches for non-ASCII chars.
...
* Invalidate cached blacklist after save completion of MediaWiki:Titleblacklist rather than during edit filtering. Should help avoid race conditions which would leave you with the old version cached.
* Some minor whitespace & style cleanup
* Some output escaping cleanup
2007-12-29 04:23:57 +00:00
Victor Vasiliev
e0c312c5fd
Validate MediaWiki:TitleBlacklist and delete it from cache before saving
2007-12-23 09:47:36 +00:00
Victor Vasiliev
b4340da579
TitleBlacklist v1.3: add caching
2007-12-19 18:35:44 +00:00
Victor Vasiliev
6dc375766b
TitleBlacklist:
...
* Add errmsg option
* Some cleanup
2007-12-17 18:38:34 +00:00
Victor Vasiliev
8f35929085
Fix a typo
2007-12-15 15:29:56 +00:00
Victor Vasiliev
9ecaa4f5b2
TitleBlacklist:
...
* Add {{ns}} and {{int}} support to blacklist (for interlingual blacklists)
* Add "caseinsenitive" attribute
2007-12-14 17:54:06 +00:00
Victor Vasiliev
d6a7b33f91
TitleBlacklist:
...
* Add TitleBlacklistEntry class
* Add entry attributes
* Temporary remove error message for userCan. Needs better hook
* Changed configuration structure
2007-12-10 19:02:38 +00:00
Victor Vasiliev
dc99a5a329
TitleBlacklist:
...
* Allow to use different sources of blacklist: local page, URL, file
2007-12-09 12:15:13 +00:00
Victor Vasiliev
ef2a6402e5
TitleBlacklist:
...
* Refactor code
* Filter images with incorrect titles
2007-12-08 21:06:21 +00:00