Browse Source

Use QueryHelpers.AddQueryString

Claus Vium 6 years ago
parent
commit
9020f68ce1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Emby.Server.Implementations/HttpServer/HttpListenerHost.cs

+ 1 - 1
Emby.Server.Implementations/HttpServer/HttpListenerHost.cs

@@ -321,7 +321,7 @@ namespace Emby.Server.Implementations.HttpServer
             string pagePathWithoutQueryString = url.Split(new[] { '?' }, StringSplitOptions.RemoveEmptyEntries)[0];
             string pagePathWithoutQueryString = url.Split(new[] { '?' }, StringSplitOptions.RemoveEmptyEntries)[0];
 
 
             return newQueryString.Count > 0
             return newQueryString.Count > 0
-                ? $"{pagePathWithoutQueryString}?{string.Join("&", newQueryString.Select(value => value.Key + " = " + string.Join(", ", value.Value)))}"
+                ? QueryHelpers.AddQueryString(pagePathWithoutQueryString, newQueryString.ToDictionary(kv => kv.Key, kv => kv.Value.ToString()))
                 : pagePathWithoutQueryString;
                 : pagePathWithoutQueryString;
         }
         }