Coding forward and backward slashes in tomcat 7?

后端 未结 4 1025
孤城傲影
孤城傲影 2021-02-05 11:24

I try send request like http://site.com/abc%2Fabc and it doesn\'t work (send status 400). How I understand tomcat doesn\'t accept encoded path separators for security reasons, b

4条回答
  •  礼貌的吻别
    2021-02-05 12:07

    We can also add this entry "org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true" in catalina.properties to allow encoded slash in url.


    And to allow backslash you have to set different properties. Refer this url for different configuration.

提交回复
热议问题