From 8bf7db6b173a44041340f5a7c84660f2b8ad0463 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Thu, 11 May 2023 19:35:04 +0200 Subject: [PATCH] Fix log --- Pages/Index.cshtml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }