This commit is contained in:
Martin Rotter 2016-02-17 07:01:35 +01:00
parent 6c8d2ae29c
commit 9d4501d379
2 changed files with 6 additions and 6 deletions

View File

@ -14,6 +14,7 @@ Added:
Fixed:
▪ Standard RSS/RDF/ATOM relative URLs in entries should now be correctly loaded. (bug #160)
▪ Fixed some problems when adding feeds from external web browser like Firefox. (bug #135)
▪ Fixed problem where custom HTTP timeout setting was ignored for TT-RSS account. (GitHub bug #9)
▪ Fixed problems with master update mutex locking. (bug #153)

View File

@ -650,12 +650,11 @@ int StandardFeed::updateMessages(const QList<Message> &messages) {
foreach (Message message, messages) {
// Check if messages contain relative URLs and if they do, then replace them.
if (message.m_url.startsWith(QL1S("/"))) {
QString new_message_url = url();
int last_slash = new_message_url.lastIndexOf(QL1S("/"));
if (last_slash >= 0) {
new_message_url = new_message_url.left(last_slash);
}
QString new_message_url = QUrl(url()).toString(QUrl::RemoveUserInfo |
QUrl::RemovePath |
QUrl::RemoveQuery |
QUrl::RemoveFilename |
QUrl::StripTrailingSlash);
new_message_url += message.m_url;
message.m_url = new_message_url;