Ignore _VIEWS in getStashKey()

Change-Id: I9830fa237073f57285435c65fe4838d23ab1d024
This commit is contained in:
Aaron Schulz 2016-07-15 07:03:05 -07:00
parent 9e06345f19
commit 8da016fe26

View file

@ -881,6 +881,7 @@ class AbuseFilter {
$oldContextTitle = $context->getTitle();
$oldWgTitle = $wgTitle;
if ( !$wgTitle ) {
$wgTitle = SpecialPage::getTitleFor( 'AbuseFilter' );
}
@ -1029,6 +1030,7 @@ class AbuseFilter {
unset( $inputVars['new_html'] );
unset( $inputVars['user_age'] );
unset( $inputVars['timestamp'] );
unset( $inputVars['_VIEWS'] );
ksort( $inputVars );
$hash = md5( serialize( $inputVars ) );