Explorar o código

Fully encode URLs when loading files

Mark McDowall %!s(int64=7) %!d(string=hai) anos
pai
achega
9104c8d1d3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/player/PlayerComponent.cpp

+ 1 - 1
src/player/PlayerComponent.cpp

@@ -306,7 +306,7 @@ void PlayerComponent::queueMedia(const QString& url, const QVariantMap& options,
     qurl.setHost(ConvertPlexDirectURL(host));
 
   QVariantList command;
-  command << "loadfile" << qurl.toString();
+  command << "loadfile" << qurl.toString(QUrl::FullyEncoded);
   command << "append-play"; // if nothing is playing, play it now, otherwise just enqueue it
 
   QVariantMap extraArgs;