17 lines
380 B
Plaintext
17 lines
380 B
Plaintext
@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")
|
|
}
|