Skip to content

Commit

Permalink
SHIBUI-1863
Browse files Browse the repository at this point in the history
Added allow doubleslash in encoded urls
  • Loading branch information
chasegawa committed May 7, 2021
1 parent 4b52655 commit 05d6582
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,14 @@ public class WebSecurityConfig {
@Autowired
private RoleRepository roleRepository;

@Bean
public HttpFirewall allowUrlEncodedSlashHttpFirewall() {
private HttpFirewall allowUrlEncodedSlashHttpFirewall() {
StrictHttpFirewall firewall = new StrictHttpFirewall();
firewall.setAllowUrlEncodedSlash(true);
firewall.setAllowUrlEncodedDoubleSlash(true);
return firewall;
}

@Bean
public HttpFirewall defaultFirewall() {
private HttpFirewall defaultFirewall() {
return new DefaultHttpFirewall();
}

Expand Down

0 comments on commit 05d6582

Please sign in to comment.