Use hasLength rather than hasText

This commit is contained in:
Stephane Nicoll
2014-12-30 15:39:48 +01:00
parent 4bcf92f176
commit 64e79ba692

View File

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