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_author = msg.m_author.toUtf8();
msg.m_accountId = acc_id; msg.m_accountId = acc_id;
// Sanitize title. Remove newlines etc. // Sanitize title.
msg.m_title = QUrl::fromPercentEncoding(msg.m_title.toUtf8()) msg.m_title = msg.m_title
// Replace all continuous white space. // Shrink consecutive whitespaces.
.replace(QRegularExpression(QSL("[\\s]{2,}")), QSL(" ")) .replace(QRegularExpression(QSL("[\\s]{2,}")), QSL(" "))
// Remove all newlines and leading white space. // Remove all newlines and leading white space.