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