mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-08 08:09:09 +00:00
Nullability fine-tuning based on IntelliJ IDEA 2018.3 inspection
Issue: SPR-15540
This commit is contained in:
+3
-6
@@ -640,12 +640,9 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (path.contains("..")) {
|
||||
path = StringUtils.cleanPath(path);
|
||||
if (path.contains("../")) {
|
||||
logger.warn("Invalid Path contains \"../\" after call to StringUtils#cleanPath.");
|
||||
return true;
|
||||
}
|
||||
if (path.contains("..") && StringUtils.cleanPath(path).contains("../")) {
|
||||
logger.warn("Invalid Path contains \"../\" after call to StringUtils#cleanPath: [" + path + "]");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user