mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-03 13:39:34 +00:00
Use hasLength rather than hasText
This commit is contained in:
+1
-1
@@ -316,7 +316,7 @@ public class ResourceHttpRequestHandler extends WebContentGenerator implements H
|
||||
locationPath = location.getURL().getPath();
|
||||
}
|
||||
locationPath = (locationPath.endsWith("/") ||
|
||||
!StringUtils.hasText(locationPath) ? locationPath : locationPath + "/");
|
||||
!StringUtils.hasLength(locationPath) ? locationPath : locationPath + "/");
|
||||
if (!resourcePath.startsWith(locationPath)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user