From dc5670edfbfc89cf8999d152660e747618b35f43 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Mon, 20 Jan 2014 21:39:18 +1100 Subject: [PATCH] Encode song URLs when inserting them into the database. This was broken by revision 98dd001a. Fixes issue #4127 --- src/core/song.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/song.cpp b/src/core/song.cpp index 36bcf4bc9..6bbf022ac 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -797,7 +797,7 @@ void Song::BindToQuery(QSqlQuery *query) const { && Utilities::UrlOnSameDriveAsClementine(d->url_)) { query->bindValue(":filename", Utilities::GetRelativePathToClementineBin(d->url_)); } else { - query->bindValue(":filename", d->url_); + query->bindValue(":filename", d->url_.toEncoded()); } query->bindValue(":mtime", notnullintval(d->mtime_));