@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") }