Преглед на файлове

RemoteComponent : decode query parameters

Keeping them encoded as we receive them from companion creates some issues
https://github.com/plexinc/plex-media-player-private/issues/611
LongChair преди 7 години
родител
ревизия
50f9cc5302
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/remote/RemoteComponent.cpp

+ 1 - 1
src/remote/RemoteComponent.cpp

@@ -147,7 +147,7 @@ QVariantMap RemoteComponent::QueryToMap(const QUrl& url)
   for(auto stringPair : query.queryItems())
   {
     QString key = stringPair.first;
-    QString value = stringPair.second;
+    QString value = QUrl::fromPercentEncoding(stringPair.second.toLatin1()).toUtf8();
 
     QVariantList l;
     if (queryMap.contains(key))