2020-08-19 03:06:14 +02:00
|
|
|
@page
|
|
|
|
@using System.Web
|
|
|
|
@model IndexModel
|
|
|
|
@{
|
2020-12-21 20:42:29 +01:00
|
|
|
var path = HttpUtility.UrlDecode(Request.QueryString.Value.TrimStart('?'));
|
|
|
|
Layout = null;
|
|
|
|
Response.ContentType = "text/plain";
|
2020-08-19 03:06:14 +02:00
|
|
|
}
|
2020-12-21 20:42:29 +01:00
|
|
|
@if (Model.Path.Contains("..")) {
|
|
|
|
return;
|
2020-08-19 03:06:14 +02:00
|
|
|
}
|
2020-12-21 20:42:29 +01:00
|
|
|
@foreach (var file in Model.Files) {
|
|
|
|
@Html.Raw("https://" + Request.Host + "/" + Model.Fullpath + "/" + file.Replace("?", "%3F") + "\n")
|
|
|
|
}
|