14 lines
365 B
Plaintext
14 lines
365 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")
|
|
} |