Fix ascii characters
This commit is contained in:
parent
46bd835f69
commit
142e529b4e
|
@ -18,7 +18,7 @@
|
||||||
{
|
{
|
||||||
@foreach (var file in Model.files)
|
@foreach (var file in Model.files)
|
||||||
{
|
{
|
||||||
@Html.Raw(Request.Scheme + "://" + Request.Host + "/" + Model.fullpath + "/" + file+"\n")
|
@Html.Raw(Request.Scheme + "://" + Request.Host + "/" + Model.fullpath + "/" + file.Replace("?", "%3F") +"\n")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -22,8 +22,7 @@ namespace webmusic.Pages
|
||||||
{
|
{
|
||||||
if (Request.QueryString.HasValue)
|
if (Request.QueryString.HasValue)
|
||||||
path = HttpUtility.UrlDecode(Request.QueryString.Value.Remove(0,1)
|
path = HttpUtility.UrlDecode(Request.QueryString.Value.Remove(0,1)
|
||||||
.Replace("+", "%2B")
|
.Replace("+", "%2B"));
|
||||||
.Replace("?", "%3F"));
|
|
||||||
if (path.EndsWith(".m3u"))
|
if (path.EndsWith(".m3u"))
|
||||||
path = path.Substring(0, path.Length - 4);
|
path = path.Substring(0, path.Length - 4);
|
||||||
if (path.Contains(".."))
|
if (path.Contains(".."))
|
||||||
|
|
Loading…
Reference in a new issue