From f1e34c7559a87e84639c7f9b3e7c105d13db27af Mon Sep 17 00:00:00 2001 From: nopara73 Date: Tue, 29 Oct 2024 10:57:10 +0100 Subject: [PATCH] is --- LongevityWorldCup.Website/Middleware/HtmlInjectionMiddleware.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LongevityWorldCup.Website/Middleware/HtmlInjectionMiddleware.cs b/LongevityWorldCup.Website/Middleware/HtmlInjectionMiddleware.cs index 2a5a3f8..22792f8 100644 --- a/LongevityWorldCup.Website/Middleware/HtmlInjectionMiddleware.cs +++ b/LongevityWorldCup.Website/Middleware/HtmlInjectionMiddleware.cs @@ -7,7 +7,7 @@ public class HtmlInjectionMiddleware(RequestDelegate next) public async Task Invoke(HttpContext context) { var path = context.Request.Path.Value; - if (path == "/" || path?.EndsWith(".html") == true) + if (path == "/" || path?.EndsWith(".html") is true) { string filePath;