Fix charset
This commit is contained in:
parent
32d7e1c9cb
commit
9f595e98a3
|
@ -2,7 +2,7 @@
|
|||
@model IndexModel
|
||||
@{
|
||||
Layout = null;
|
||||
Response.ContentType = "text/plain";
|
||||
Response.ContentType = "text/plain; charset=utf-8";
|
||||
}
|
||||
@if (Model.Path.Contains("..")) {
|
||||
return;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
@{
|
||||
var path = HttpUtility.UrlDecode(Request.QueryString.Value.TrimStart('?'));
|
||||
Layout = null;
|
||||
Response.ContentType = "text/plain";
|
||||
Response.ContentType = "text/plain; charset=utf-8";
|
||||
}
|
||||
@if (Model.Path.Contains("..")) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue