Skip to content

Commit cde2613

Browse files
committed
MvcConfig: remove temporary workaround for CVE-2016-5007.
No functional changes.
1 parent d5b3e48 commit cde2613

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/main/java/ru/mystamps/web/config/MvcConfig.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
2727
import org.springframework.format.FormatterRegistry;
2828
import org.springframework.scheduling.annotation.EnableScheduling;
29-
import org.springframework.util.AntPathMatcher;
3029
import org.springframework.validation.Validator;
3130
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;
3231
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
@@ -120,13 +119,6 @@ public void addInterceptors(InterceptorRegistry registry) {
120119

121120
@Override
122121
public void configurePathMatch(PathMatchConfigurer configurer) {
123-
// This is a temporary guard against CVE-2016-5007.
124-
// Should be removed after upgrading to Spring MVC 4.3.1+ and Spring Security 4.1.1+.
125-
// See also: http://pivotal.io/security/cve-2016-5007
126-
AntPathMatcher pathMatcher = new AntPathMatcher();
127-
pathMatcher.setTrimTokens(false);
128-
configurer.setPathMatcher(pathMatcher);
129-
130122
// If enabled a method mapped to "/users" also matches to "/users/"
131123
configurer.setUseTrailingSlashMatch(false);
132124
// If enabled a method mapped to "/users" also matches to "/users.*"

0 commit comments

Comments
 (0)