mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-30 09:04:52 +01:00
Fix #267.
This commit is contained in:
parent
77051f9de6
commit
70f8ee92c2
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user