mirror of
https://github.com/keycloak/keycloak.git
synced 2026-05-08 08:01:18 -05:00
Escape action in the form_post response mode (#30)
Closes https://issues.redhat.com/browse/RHBK-652 Signed-off-by: rmartinc <rmartinc@redhat.com>
This commit is contained in:
@@ -160,7 +160,9 @@ public abstract class OIDCRedirectUriBuilder {
|
||||
builder.append(" </HEAD>");
|
||||
builder.append(" <BODY Onload=\"document.forms[0].submit()\">");
|
||||
|
||||
builder.append(" <FORM METHOD=\"POST\" ACTION=\"" + redirectUri.toString() + "\">");
|
||||
builder.append(" <FORM METHOD=\"POST\" ACTION=\"")
|
||||
.append(HtmlUtils.escapeAttribute(redirectUri.toString()))
|
||||
.append("\">");
|
||||
|
||||
for (Map.Entry<String, String> param : params.entrySet()) {
|
||||
builder.append(" <INPUT TYPE=\"HIDDEN\" NAME=\"")
|
||||
|
||||
Reference in New Issue
Block a user