Skip to content

Commit

Permalink
Tells spring security to allow URLs with percent and semicolon charac…
Browse files Browse the repository at this point in the history
…ters (#159)
  • Loading branch information
bbranan committed Dec 8, 2021
1 parent 65fed5e commit f1546cb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions duradmin/src/main/webapp/WEB-INF/config/security-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,11 @@
<beans:bean id="webexpressionHandler"
class="org.springframework.security.web.access.expression.DefaultWebSecurityExpressionHandler"/>

<beans:bean id="allowCharactersHttpFirewall"
class="org.springframework.security.web.firewall.StrictHttpFirewall">
<beans:property name="allowUrlEncodedPercent" value="true"/>
<beans:property name="allowSemicolon" value="true"/>
</beans:bean>
<http-firewall ref="allowCharactersHttpFirewall"/>

</beans:beans>
7 changes: 7 additions & 0 deletions durastore/src/main/webapp/WEB-INF/config/security-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,11 @@
<beans:constructor-arg value="256"/>
</beans:bean>

<beans:bean id="allowCharactersHttpFirewall"
class="org.springframework.security.web.firewall.StrictHttpFirewall">
<beans:property name="allowUrlEncodedPercent" value="true"/>
<beans:property name="allowSemicolon" value="true"/>
</beans:bean>
<http-firewall ref="allowCharactersHttpFirewall"/>

</beans:beans>

0 comments on commit f1546cb

Please sign in to comment.