webmusic/Pages/playlist.cshtml

15 lines
381 B
Plaintext
Raw Permalink Normal View History

@page
@using System.Web
@model IndexModel
@{
2020-12-21 20:42:29 +01:00
var path = HttpUtility.UrlDecode(Request.QueryString.Value.TrimStart('?'));
Layout = null;
2023-06-29 16:50:29 +02:00
Response.ContentType = "text/plain; charset=utf-8";
}
2020-12-21 20:42:29 +01:00
@if (Model.Path.Contains("..")) {
return;
}
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")
2023-06-29 16:50:29 +02:00
}