Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewDiff.php |
— | — | @@ -302,10 +302,10 @@ |
303 | 303 | |
304 | 304 | function getMultiLineRow( $msg, $old, $new ) { |
305 | 305 | if ( !is_array( $old ) ) { |
306 | | - $old = explode( "\n", str_replace( "\r", '', $old ) ); |
| 306 | + $old = explode( "\n", preg_replace( "/\\\r\\\n?/", "\n", $old ) ); |
307 | 307 | } |
308 | 308 | if ( !is_array( $new ) ) { |
309 | | - $new = explode( "\n", str_replace( "\r", '', $new ) ); |
| 309 | + $new = explode( "\n", preg_replace( "/\\\r\\\n?/", "\n", $new ) ); |
310 | 310 | } |
311 | 311 | |
312 | 312 | if ( $old == $new ) { |