Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F11252
patch.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 22 2014, 1:48 AM
2014-11-22 01:48:47 (UTC+0)
Size
590 B
Referenced Files
None
Subscribers
None
patch.diff
View Options
diff --git a/AbuseFilter.class.php b/AbuseFilter.class.php
index 24d9080..a58a041 100644
--- a/AbuseFilter.class.php
+++ b/AbuseFilter.class.php
@@ -1974,10 +1974,10 @@ class AbuseFilter {
$user->setName( $row->rc_user_text );
}
- $params = explode( "\n", trim( $row->rc_params ) );
+ $params = array_values(unserialize($row->rc_params));
$oldTitle = Title::makeTitle( $row->rc_namespace, $row->rc_title );
- $newTitle = Title::newFromText( $params[0] );
+ $newTitle = Title::makeTitle( $params[1], $params[0] );
$vars = AbuseFilterVariableHolder::merge(
$vars,
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
10717
Default Alt Text
patch.diff (590 B)
Attached To
Mode
T54053: AbuseFilter doesn't set any of the "moved_to..." variables anymore
Attached
Detach File
Event Timeline
Log In to Comment