mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-10-20 17:28:49 +00:00
Fix NullAway error
Related https://github.com/spring-projects/spring-framework/pull/35629
This commit is contained in:
parent
95644fb73c
commit
67c3ceb611
@ -101,7 +101,7 @@ public final class FormPostRedirectStrategy implements RedirectStrategy {
|
||||
// @formatter:off
|
||||
final String html = REDIRECT_PAGE_TEMPLATE
|
||||
// Clear the query string as we don't want that to be part of the form action URL
|
||||
.replace("{{action}}", HtmlUtils.htmlEscape(uriComponentsBuilder.query(null).build().toUriString()))
|
||||
.replace("{{action}}", HtmlUtils.htmlEscape(uriComponentsBuilder.replaceQuery(null).build().toUriString()))
|
||||
.replace("{{params}}", hiddenInputsHtmlBuilder.toString())
|
||||
.replace("{{nonce}}", HtmlUtils.htmlEscape(nonce));
|
||||
// @formatter:on
|
||||
|
@ -105,7 +105,7 @@ public final class FormPostServerRedirectStrategy implements ServerRedirectStrat
|
||||
// @formatter:off
|
||||
final String html = REDIRECT_PAGE_TEMPLATE
|
||||
// Clear the query string as we don't want that to be part of the form action URL
|
||||
.replace("{{action}}", HtmlUtils.htmlEscape(uriComponentsBuilder.query(null).build().toUriString()))
|
||||
.replace("{{action}}", HtmlUtils.htmlEscape(uriComponentsBuilder.replaceQuery(null).build().toUriString()))
|
||||
.replace("{{params}}", hiddenInputsHtmlBuilder.toString())
|
||||
.replace("{{nonce}}", HtmlUtils.htmlEscape(nonce));
|
||||
// @formatter:on
|
||||
|
Loading…
x
Reference in New Issue
Block a user