SEC-1180: Unreachable code inside UrlUtils.buildRequestUrl(...). Removed code block.

This commit is contained in:
Luke Taylor 2009-09-01 18:13:28 +00:00
parent f6f5855b52
commit 936326f4ab
1 changed files with 1 additions and 8 deletions

View File

@ -76,14 +76,7 @@ public final class UrlUtils {
public static String buildRequestUrl(String servletPath, String requestURI, String contextPath, String pathInfo,
String queryString) {
String uri = servletPath;
if (uri == null) {
uri = requestURI;
uri = uri.substring(contextPath.length());
}
return uri + ((pathInfo == null) ? "" : pathInfo) + ((queryString == null) ? "" : ("?" + queryString));
return servletPath + ((pathInfo == null) ? "" : pathInfo) + ((queryString == null) ? "" : ("?" + queryString));
}
/**