mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-01 09:42:13 +00:00
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,
|
public static String buildRequestUrl(String servletPath, String requestURI, String contextPath, String pathInfo,
|
||||||
String queryString) {
|
String queryString) {
|
||||||
|
|
||||||
String uri = servletPath;
|
return servletPath + ((pathInfo == null) ? "" : pathInfo) + ((queryString == null) ? "" : ("?" + queryString));
|
||||||
|
|
||||||
if (uri == null) {
|
|
||||||
uri = requestURI;
|
|
||||||
uri = uri.substring(contextPath.length());
|
|
||||||
}
|
|
||||||
|
|
||||||
return uri + ((pathInfo == null) ? "" : pathInfo) + ((queryString == null) ? "" : ("?" + queryString));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user