Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 629279b

Browse files
author
Tiago Brenck
authored
Merge pull request #71 from Azure-Samples/tibre/queryStringFix
Escaping error query string
2 parents 0275b6e + 5c878af commit 629279b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WebApp-OpenIDConnect-DotNet/OpenIdConnectOptionsSetup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public Task OnRemoteFailure(RemoteFailureContext context)
9595
}
9696
else
9797
{
98-
context.Response.Redirect("/Home/Error?message=" + context.Failure.Message);
98+
context.Response.Redirect("/Home/Error?message=" + Uri.EscapeDataString(context.Failure.Message));
9999
}
100100
return Task.FromResult(0);
101101
}

0 commit comments

Comments
 (0)