diff --git a/Pages/Index.cshtml.cs b/Pages/Index.cshtml.cs index 2ebdc19..22f338e 100644 --- a/Pages/Index.cshtml.cs +++ b/Pages/Index.cshtml.cs @@ -54,8 +54,8 @@ namespace webmusic.Pages { if (pathparts.Length > 2) { CopyAlbum = pathparts[Index.FromEnd(1)].Replace("'", "\\'"); CopyArtist = pathparts[Index.FromEnd(2)].Replace("'", "\\'");; - LogAlbum = HttpUtility.UrlPathEncode(pathparts[Index.FromEnd(1)]).Replace("'", "\\'");; - LogArtist = HttpUtility.UrlPathEncode(pathparts[Index.FromEnd(2)]).Replace("'", "\\'");; + LogAlbum = HttpUtility.UrlPathEncode(pathparts[Index.FromEnd(1)]).Replace("'", "\\'").Replace("&", "%26"); + LogArtist = HttpUtility.UrlPathEncode(pathparts[Index.FromEnd(2)]).Replace("'", "\\'").Replace("&", "%26"); LogUrl = Request.GetEncodedUrl().Replace("'", "\\'");; LogConditionsMet = true; }