refine return url

This commit is contained in:
Terry W Brady
2018-01-24 10:06:22 -08:00
parent dfba61fa87
commit ec7781156c

View File

@@ -510,13 +510,7 @@ public class ShibAuthentication implements AuthenticationMethod
int port = request.getServerPort(); int port = request.getServerPort();
String contextPath = request.getContextPath(); String contextPath = request.getContextPath();
String returnURL; String returnURL = request.getHeader("Referer");;
if (request.isSecure() || forceHTTPS)
returnURL = "https://";
else
returnURL = "http://";
returnURL += "?target=" + request.getHeader("Referer");
try { try {
shibURL += "?target="+URLEncoder.encode(returnURL, "UTF-8"); shibURL += "?target="+URLEncoder.encode(returnURL, "UTF-8");