From c527cc17aa27a2fa8b59a8fd6fdc917cc8b88b35 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Mon, 12 Aug 2019 21:25:15 +0200 Subject: [PATCH] Fix plus sign in folder names --- Pages/Index.cshtml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Pages/Index.cshtml.cs b/Pages/Index.cshtml.cs index cf64a4f..a4eba49 100644 --- a/Pages/Index.cshtml.cs +++ b/Pages/Index.cshtml.cs @@ -21,7 +21,8 @@ namespace webmusic.Pages public void OnGet() { if (Request.QueryString.HasValue) - path = HttpUtility.UrlDecode(Request.QueryString.Value.Remove(0,1)); + path = HttpUtility.UrlDecode(Request.QueryString.Value.Remove(0,1) + .Replace("+", "%2B")); if (path.EndsWith(".m3u")) path = path.Substring(0, path.Length - 4); if (path.Contains(".."))