This commit is contained in:
Martin Rotter 2020-08-11 08:08:14 +02:00
parent 77051f9de6
commit 70f8ee92c2

View File

@ -102,10 +102,10 @@ void FeedDownloader::updateOneFeed(Feed* feed) {
msg.m_author = msg.m_author.toUtf8();
msg.m_accountId = acc_id;
// Sanitize title. Remove newlines etc.
msg.m_title = QUrl::fromPercentEncoding(msg.m_title.toUtf8())
// Sanitize title.
msg.m_title = msg.m_title
// Replace all continuous white space.
// Shrink consecutive whitespaces.
.replace(QRegularExpression(QSL("[\\s]{2,}")), QSL(" "))
// Remove all newlines and leading white space.