@page @using System.IO @model IndexModel @{ ViewData["Title"] = $"{Model.Path.Split("/").Last()} ~ webmusic on .NET {Environment.Version}"; } @if (Model.Path.Contains("/..")) { return; } @if (!Model.Path.EndsWith(".lrc")) { Response.Redirect("/" + Request.QueryString); return; } @{ Layout = "Shared/_LayoutNojs"; }

@Model.Path

@Html.Raw((await System.IO.File.ReadAllTextAsync("music" + Model.Path)).Replace("\n", "
"))