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

Commit 5c878af

Browse files
author
Tiago Brenck
committed
Fix for #70
- Escaping error query string, since it could contain special characters that will lead to an invalid URL.
1 parent 0275b6e commit 5c878af

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)