This commit is contained in:
Martin Rotter 2023-04-12 06:42:52 +02:00
parent 6d251dd34c
commit 14889ea88d
1 changed files with 3 additions and 0 deletions

View File

@ -87,6 +87,9 @@ void Message::sanitize(const Feed* feed, bool fix_future_datetimes) {
// Remove non-breaking zero-width spaces.
.remove(QChar(65279));
// Sanitize URL.
m_url = m_url.trimmed();
// Check if messages contain relative URLs and if they do, then replace them.
if (m_url.startsWith(QL1S("//"))) {
m_url = QSL(URI_SCHEME_HTTPS) + m_url.mid(2);