spring-framework/spring-webmvc/src
Brian Clozel 71c3e4e4ee Fix empty URLs handling in ResourceUrlEncodingFilter
Prior to this commit, the ResourceUrlEncodingFilter would fail with a
StringIndexOutOfBoundsException when:

* the current request has a servlet context
* the URL to encode is relative and is shorter than the context value

This change defensively checks for those lengths and delegates to the
parent implementation if necessary.

Issue: SPR-13018
2015-05-13 14:30:09 +02:00
..
main Fix empty URLs handling in ResourceUrlEncodingFilter 2015-05-13 14:30:09 +02:00
test Fix empty URLs handling in ResourceUrlEncodingFilter 2015-05-13 14:30:09 +02:00