From cea41801db3ee0cf0b7833807ef76e1910b72cbe Mon Sep 17 00:00:00 2001 From: John Maguire Date: Thu, 16 May 2013 16:40:32 +0200 Subject: [PATCH] Fix loading of songs from Dropbox that have # in the name. Fixes issue #3664 --- src/internet/dropboxservice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/internet/dropboxservice.cpp b/src/internet/dropboxservice.cpp index 3ed3f67c9..64e162911 100644 --- a/src/internet/dropboxservice.cpp +++ b/src/internet/dropboxservice.cpp @@ -150,7 +150,8 @@ void DropboxService::RequestFileListFinished(QNetworkReply* reply) { } QNetworkReply* DropboxService::FetchContentUrl(const QUrl& url) { - QUrl request_url(QString(kMediaEndpoint) + url.path()); + QUrl request_url = QUrl((QString(kMediaEndpoint))); + request_url.setPath(request_url.path() + url.path().mid(1)); QNetworkRequest request(request_url); request.setRawHeader("Authorization", GenerateAuthorisationHeader()); return network_->post(request, QByteArray());