mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Merge "(bug 20310) Invalid value of edit_diff"
This commit is contained in:
commit
0ddac4e5be
|
@ -20,6 +20,10 @@ class AbuseFilterHooks {
|
|||
// Load vars
|
||||
$vars = new AbuseFilterVariableHolder;
|
||||
|
||||
# Replace line endings so the filter won't get confused as $text
|
||||
# was not processed by Parser::preSaveTransform (bug 20310)
|
||||
$text = str_replace( "\r\n", "\n", $text );
|
||||
|
||||
// Check for null edits.
|
||||
$oldtext = '';
|
||||
|
||||
|
|
Loading…
Reference in a new issue