webmusic/Pages/playlist.cshtml

14 lines
365 B
Plaintext
Raw 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;
Response.ContentType = "text/plain";
}
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")
}