mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-13 17:27:20 +00:00
069e0c89a5
This allows filters using `action='upload'` to use the variables `summary`, `new_wikitext` and several others that previously were only provided when editing pages (`action='edit'`). This is achieved using the new UploadVerifyUpload hook, introduced in MediaWiki core in change Ie68801b307de8456e1753ba54a29c34c8063bc36. `action='upload'` is now only used when publishing an upload, and not for uploads to stash. A new `action='stashupload'` is introduced, which is used for all uploads, including uploads to stash. This behaves like `action='upload'` used to, and only provides file metadata variables. Filter authors should use `action='stashupload'` when a file can be checked based only on the file contents, and `action='upload'` only when the wikitext edit needs to be examined too. Bug: T87381 Bug: T89252 Bug: T139848 Change-Id: I9654f82ecda82e4917fd0ac6b364b947a1434c73 |
||
---|---|---|
api | ||
db_patches | ||
i18n | ||
maintenance | ||
modules | ||
special | ||
tests | ||
Views | ||
.gitignore | ||
.gitreview | ||
.jshintignore | ||
.jshintrc | ||
AbuseFilter.alias.php | ||
AbuseFilter.class.php | ||
AbuseFilter.hooks.php | ||
AbuseFilter.parser.php | ||
AbuseFilter.php | ||
abusefilter.tables.pg.sql | ||
abusefilter.tables.sql | ||
abusefilter.tables.sqlite.sql | ||
AbuseFilterPreAuthenticationProvider.php | ||
AbuseFilterTokenizer.php | ||
AbuseFilterVariableHolder.php | ||
AbuseLogHitFormatter.php | ||
composer.json | ||
COPYING | ||
extension.json | ||
Gruntfile.js | ||
hooks.txt | ||
package.json | ||
phpcs.xml |