1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 09:19:41 +01:00

properly decode escaped characters coming from the HTTP api

This commit is contained in:
Leo Franchi 2011-07-20 14:12:17 -04:00
parent 5336700050
commit f5e39c216e

View File

@ -244,7 +244,7 @@ Api_v1::resolve( QxtWebRequestEvent* event )
else
qid = uuid();
query_ptr qry = Query::get( event->url.queryItemValue( "artist" ), event->url.queryItemValue( "track" ), event->url.queryItemValue( "album" ), qid, false );
query_ptr qry = Query::get( QUrl::fromPercentEncoding( event->url.queryItemValue( "artist" ).toUtf8() ), QUrl::fromPercentEncoding( event->url.queryItemValue( "track" ).toUtf8() ), QUrl::fromPercentEncoding( event->url.queryItemValue( "album" ).toUtf8() ), qid, false );
Pipeline::instance()->resolve( qry, true, true );
QVariantMap r;