@page @using System.Web @model IndexModel @{ ViewData["Title"] = $"webmusic on .NET {Environment.Version}"; var path = HttpUtility.UrlDecode(Request.QueryString.Value.TrimStart('?')); if (path.EndsWith(".m3u")) { Layout = null; Response.ContentType = "text/plain"; } } @if (Model.path.Contains("/..")) { return; } @if (path.EndsWith(".m3u")) { @foreach (var file in Model.files) { @Html.Raw("https://" + Request.Host + "/" + Model.fullpath + "/" + file.Replace("?", "%3F") +"\n") } } else {