SEC-1180: Unreachable code inside UrlUtils.buildRequestUrl(...). Removed code block.
This commit is contained in:
parent
f6f5855b52
commit
936326f4ab
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue