Nullability fine-tuning based on IntelliJ IDEA 2018.3 inspection

Issue: SPR-15540
This commit is contained in:
Juergen Hoeller
2018-11-22 16:12:38 +01:00
parent b1b28d4641
commit bf272b0b21
14 changed files with 66 additions and 66 deletions

View File

@@ -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;
}