mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-09 19:13:18 +00:00
refine return url
This commit is contained in:
@@ -510,13 +510,7 @@ public class ShibAuthentication implements AuthenticationMethod
|
||||
int port = request.getServerPort();
|
||||
String contextPath = request.getContextPath();
|
||||
|
||||
String returnURL;
|
||||
if (request.isSecure() || forceHTTPS)
|
||||
returnURL = "https://";
|
||||
else
|
||||
returnURL = "http://";
|
||||
|
||||
returnURL += "?target=" + request.getHeader("Referer");
|
||||
String returnURL = request.getHeader("Referer");;
|
||||
|
||||
try {
|
||||
shibURL += "?target="+URLEncoder.encode(returnURL, "UTF-8");
|
||||
|
Reference in New Issue
Block a user