Page MenuHomePhabricator

patch.diff

Authored By
bzimport
Nov 22 2014, 1:48 AM
Size
590 B
Referenced Files
None
Subscribers
None

patch.diff

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

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
10717
Default Alt Text
patch.diff (590 B)

Event Timeline

  NODES
Note 1