Bartosz Dziewoński has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/281483

Change subject: Interpret data correctly in getMoveVarsFromRCRow()
......................................................................

Interpret data correctly in getMoveVarsFromRCRow()

$params[0] is the full prefixed page title, with namespace.
$params[1] is whether the move was with or without a redirect.

Bug: T121963
Change-Id: I880bb227f2fc97394a68187e7b8391acf5aeaf5e
---
M AbuseFilter.class.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/AbuseFilter 
refs/changes/83/281483/1

diff --git a/AbuseFilter.class.php b/AbuseFilter.class.php
index 727e8d0..0270f2e 100755
--- a/AbuseFilter.class.php
+++ b/AbuseFilter.class.php
@@ -1976,7 +1976,7 @@
                $params = array_values( DatabaseLogEntry::newFromRow( $row 
)->getParameters() );
 
                $oldTitle = Title::makeTitle( $row->rc_namespace, 
$row->rc_title );
-               $newTitle = Title::makeTitle( $params[1], $params[0] );
+               $newTitle = Title::newFromText( $params[0] );
 
                $vars = AbuseFilterVariableHolder::merge(
                        AbuseFilter::generateUserVars( $user ),

-- 
To view, visit https://gerrit.wikimedia.org/r/281483
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I880bb227f2fc97394a68187e7b8391acf5aeaf5e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/AbuseFilter
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to