-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Support ServerFormPostRedirectStrategy #16551
base: main
Are you sure you want to change the base?
Conversation
Closes spring-projectsgh-16542 Signed-off-by: Max Batischev <[email protected]>
Closes spring-projectsgh-16556 Signed-off-by: Max Batischev <[email protected]>
f5a036c
to
df80ff5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @franticticktick, this looks great so far! I added one minor comment for now, and then I will review this more thoroughly before merging and can make any other minor adjustments if I find anything.
.replace("{{action}}", HtmlUtils.htmlEscape(uriComponentsBuilder.query(null).build().toUriString())) | ||
.replace("{{params}}", hiddenInputsHtmlBuilder.toString()) | ||
.replace("{{nonce}}", HtmlUtils.htmlEscape(nonce)) | ||
.getBytes(Charset.defaultCharset()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we will want to use StandardCharsets.UTF_8
here instead since the html page declares that charset
in a <meta>
tag.
Closes gh-16542