Use HttpUtility.UrlEncode
This commit is contained in:
parent
84f81bfa66
commit
b70ad17032
|
@ -50,8 +50,8 @@ namespace webmusic.Pages {
|
||||||
if (Log.StatisticsEnabled && Request.Headers["Remote-User"].Equals(Log.StatisticsUser) && Files.Any()) {
|
if (Log.StatisticsEnabled && Request.Headers["Remote-User"].Equals(Log.StatisticsUser) && Files.Any()) {
|
||||||
var pathparts = Displaypath.Split(System.IO.Path.DirectorySeparatorChar);
|
var pathparts = Displaypath.Split(System.IO.Path.DirectorySeparatorChar);
|
||||||
if (pathparts.Length > 2) {
|
if (pathparts.Length > 2) {
|
||||||
LogAlbum = Encode(pathparts[Index.FromEnd(1)]);
|
LogAlbum = HttpUtility.UrlEncode(pathparts[Index.FromEnd(1)]);
|
||||||
LogArtist = Encode(pathparts[Index.FromEnd(2)]);
|
LogArtist = HttpUtility.UrlEncode(pathparts[Index.FromEnd(2)]);
|
||||||
LogUrl = Request.GetEncodedUrl();
|
LogUrl = Request.GetEncodedUrl();
|
||||||
LogConditionsMet = true;
|
LogConditionsMet = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue