Merge "Simplify contentToString function"

This commit is contained in:
jenkins-bot 2018-05-25 12:12:22 +00:00 committed by Gerrit Code Review
commit 424e5eab70

View file

@ -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;
}