Go to file
Brad Jorsch cec8352e5b Improve tag name validation
Various pieces of the tagging system will break if the tag name contains
slashes or commas, so that should be checked for.

MediaWiki core (as of Ic5d75432) contains a method for doing just that,
so use it if possible.

Also require that tag names be either:
* Intended for reuse (canAddTagsAccompanyingChange)
* Already in use
* Creatable

This prevents the use of software-defined tags (unless whitelisted)
or tags that are blocked from creation (e.g. OAuth reserved tag
prefixes)

Add caching for tag lookup since it's used more often now.

Bug: T92956
Bug: T27151
Depends-On: Ic5d754323cbfd2c2b54c4df1245767946ebb1821
Change-Id: Ibc3095879f276a5436362f471b885e64f338522e
2017-06-15 20:15:20 -04:00
api Use short array syntax - Views / api 2017-06-15 14:40:55 +00:00
db_patches abuse_filter_log table only uses tinyint not int for namespace ID 2014-03-04 02:24:27 +00:00
i18n Improve tag name validation 2017-06-15 20:15:20 -04:00
includes Use short array syntax 2017-06-15 17:02:57 +02:00
maintenance Use short array syntax 2017-06-15 17:02:57 +02:00
modules Add stylelint for css files 2017-04-16 20:21:40 +02:00
special Use short array syntax 2017-06-15 17:02:57 +02:00
tests Use short array syntax 2017-06-15 17:02:57 +02:00
Views Improve tag name validation 2017-06-15 20:15:20 -04:00
.gitignore Expand .gitignore for more editors 2016-11-13 12:49:41 +01:00
.gitreview Whoops, track not trace 2016-10-24 17:01:30 -07:00
.jshintignore Add npm entry point 2016-02-29 19:52:23 +00:00
.jshintrc Add npm entry point 2016-02-29 19:52:23 +00:00
.stylelintrc Add stylelint for css files 2017-04-16 20:21:40 +02:00
AbuseFilter.alias.php Use short array syntax in alias file 2017-06-15 14:30:30 +00:00
AbuseFilter.hooks.php Improve tag name validation 2017-06-15 20:15:20 -04:00
AbuseFilter.php Change some globals to work better with extension registration 2016-06-06 19:53:53 +00:00
abusefilter.tables.pg.sql abuse_filter_log table only uses tinyint not int for namespace ID 2014-03-04 02:24:27 +00:00
abusefilter.tables.sql abuse_filter_log table only uses tinyint not int for namespace ID 2014-03-04 02:24:27 +00:00
abusefilter.tables.sqlite.sql abuse_filter_log table only uses tinyint not int for namespace ID 2014-03-04 02:24:27 +00:00
CODE_OF_CONDUCT.md Add CODE_OF_CONDUCT.md 2017-06-07 08:28:35 +04:30
composer.json Update mediawiki/codesniffer to 0.7.2 2017-06-13 11:59:10 +02:00
COPYING Add COPYING 2014-01-22 21:21:10 +00:00
extension.json Remove the "flag the edit in the abuse log" checkbox 2017-02-13 14:27:44 -05:00
Gruntfile.js Add stylelint for css files 2017-04-16 20:21:40 +02:00
hooks.txt (bug 42064) AbuseFilter + EditFilterMergedContent 2013-01-17 11:18:28 +01:00
package.json Add stylelint for css files 2017-04-16 20:21:40 +02:00
phpcs.xml Use short array syntax 2017-06-15 17:02:57 +02:00