Merge "(bug 20310) Invalid value of edit_diff"

This commit is contained in:
Werdna 2012-05-04 04:30:25 +00:00 committed by Gerrit Code Review
commit 0ddac4e5be

View file

@ -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 = '';