mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Merge "Simplify contentToString function"
This commit is contained in:
commit
424e5eab70
|
@ -2634,14 +2634,8 @@ class AbuseFilter {
|
|||
: $content->getTextForSearchIndex();
|
||||
}
|
||||
|
||||
if ( is_string( $text ) ) {
|
||||
// T22310
|
||||
// XXX: Is this really needed? Should we rather apply PST?
|
||||
$text = str_replace( "\r\n", "\n", $text );
|
||||
} else {
|
||||
$text = '';
|
||||
}
|
||||
|
||||
// T22310
|
||||
$text = TextContent::normalizeLineEndings( (string)$text );
|
||||
return $text;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue