We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b9c527 commit fc37824Copy full SHA for fc37824
spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright 2002-2014 the original author or authors.
+ * Copyright 2002-2016 the original author or authors.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
@@ -281,7 +281,7 @@ protected boolean isInvalidPath(String path) {
281
return true;
282
}
283
284
- if (path.contains("../")) {
+ if (path.contains("..")) {
285
path = StringUtils.cleanPath(path);
286
if (path.contains("../")) {
287
if (logger.isTraceEnabled()) {
0 commit comments