Skip to content

Commit

Permalink
SHIBUI-2394
Browse files Browse the repository at this point in the history
Fixes for websecurity not liking semicolons
  • Loading branch information
chasegawa committed Nov 9, 2022
1 parent a113ab6 commit 1564e59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ private HttpFirewall allowUrlEncodedSlashHttpFirewall() {
StrictHttpFirewall firewall = new StrictHttpFirewall();
firewall.setAllowUrlEncodedSlash(true);
firewall.setAllowUrlEncodedDoubleSlash(true);
firewall.setAllowSemicolon(true);
return firewall;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public void configure(org.springframework.security.config.annotation.web.builder
StrictHttpFirewall firewall = new StrictHttpFirewall();
firewall.setAllowUrlEncodedSlash(true);
firewall.setAllowUrlEncodedDoubleSlash(true);
firewall.setAllowSemicolon(true);
web.httpFirewall(firewall);

// These don't need to be secured
Expand Down

0 comments on commit 1564e59

Please sign in to comment.