@page @using System.Web @model IndexModel @{ ViewData["Title"] = "webmusic"; 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(Request.Scheme + "://" + Request.Host + "/" + Model.fullpath + "/" + file.Replace("?", "%3F") +"\n") } } else {