Fix charset
This commit is contained in:
parent
32d7e1c9cb
commit
9f595e98a3
|
@ -2,7 +2,7 @@
|
||||||
@model IndexModel
|
@model IndexModel
|
||||||
@{
|
@{
|
||||||
Layout = null;
|
Layout = null;
|
||||||
Response.ContentType = "text/plain";
|
Response.ContentType = "text/plain; charset=utf-8";
|
||||||
}
|
}
|
||||||
@if (Model.Path.Contains("..")) {
|
@if (Model.Path.Contains("..")) {
|
||||||
return;
|
return;
|
||||||
|
@ -12,4 +12,4 @@
|
||||||
}
|
}
|
||||||
@foreach (var file in Model.Files) {
|
@foreach (var file in Model.Files) {
|
||||||
@Html.Raw(file + "\n")
|
@Html.Raw(file + "\n")
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
@{
|
@{
|
||||||
var path = HttpUtility.UrlDecode(Request.QueryString.Value.TrimStart('?'));
|
var path = HttpUtility.UrlDecode(Request.QueryString.Value.TrimStart('?'));
|
||||||
Layout = null;
|
Layout = null;
|
||||||
Response.ContentType = "text/plain";
|
Response.ContentType = "text/plain; charset=utf-8";
|
||||||
}
|
}
|
||||||
@if (Model.Path.Contains("..")) {
|
@if (Model.Path.Contains("..")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@foreach (var file in Model.Files) {
|
@foreach (var file in Model.Files) {
|
||||||
@Html.Raw("https://" + Request.Host + "/" + Model.Fullpath + "/" + file.Replace("?", "%3F") + "\n")
|
@Html.Raw("https://" + Request.Host + "/" + Model.Fullpath + "/" + file.Replace("?", "%3F") + "\n")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue