Fix plus sign in folder names

This commit is contained in:
Laura Hausmann 2019-08-12 21:25:15 +02:00
parent f46ed4dd15
commit c527cc17aa
No known key found for this signature in database
GPG key ID: 1720DF2EC8974C2D

View file

@ -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(".."))