浏览代码

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))