mirror of
https://github.com/martinrotter/rssguard.git
synced 2024-12-31 18:37:30 +01:00
Fixed #160.
This commit is contained in:
parent
6c8d2ae29c
commit
9d4501d379
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user