From 7829acc2d04e1cac24811252d76df4ab1a5c730a Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Fri, 20 Dec 2024 16:01:32 +1100 Subject: [PATCH] Update StringsExtensions.cs --- .../src/IdentityServer/Extensions/StringsExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/identity-server/src/IdentityServer/Extensions/StringsExtensions.cs b/identity-server/src/IdentityServer/Extensions/StringsExtensions.cs index 3ecc90a9c..8e3ee75fe 100644 --- a/identity-server/src/IdentityServer/Extensions/StringsExtensions.cs +++ b/identity-server/src/IdentityServer/Extensions/StringsExtensions.cs @@ -142,7 +142,7 @@ public static string CleanUrlPath(this string? url) } [DebuggerStepThrough] - public static bool IsLocalUrl([NotNullWhen(false)] this string? url) + public static bool IsLocalUrl([NotNullWhen(true)] this string? url) { // This implementation is a copy of a https://github.com/dotnet/aspnetcore/blob/3f1acb59718cadf111a0a796681e3d3509bb3381/src/Mvc/Mvc.Core/src/Routing/UrlHelperBase.cs#L315 // We originally copied that code to avoid a dependency, but we could potentially remove this entirely by switching to the Microsoft.NET.Sdk.Web sdk.