mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Save upload related title vars in ARTICLE prefix not FILE
We don't define FILE_* as useable title variables, so they're not accessible Change-Id: I857b55937204c9ecd2bbd433a33f360b7d3e3aa7
This commit is contained in:
parent
98cb0973cd
commit
f2715ee51c
|
@ -676,7 +676,7 @@ class AbuseFilterHooks {
|
|||
|
||||
$vars->addHolders(
|
||||
AbuseFilter::generateUserVars( $wgUser ),
|
||||
AbuseFilter::generateTitleVars( $title, 'FILE' )
|
||||
AbuseFilter::generateTitleVars( $title, 'ARTICLE' )
|
||||
);
|
||||
|
||||
$vars->setVar( 'ACTION', 'upload' );
|
||||
|
|
|
@ -129,7 +129,7 @@ class AbuseFilterVariableHolder {
|
|||
$coreVariables = array_keys( $coreVariables['vars'] );
|
||||
|
||||
// Title vars can have several prefixes
|
||||
$prefixes = array( 'ARTICLE', 'MOVED_FROM', 'MOVED_TO', 'FILE' );
|
||||
$prefixes = array( 'ARTICLE', 'MOVED_FROM', 'MOVED_TO' );
|
||||
$titleVars = array(
|
||||
'_ARTICLEID',
|
||||
'_NAMESPACE',
|
||||
|
|
Loading…
Reference in a new issue