mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 04:53:16 +00:00
Update target return url
This commit is contained in:
@@ -516,10 +516,7 @@ public class ShibAuthentication implements AuthenticationMethod
|
|||||||
else
|
else
|
||||||
returnURL = "http://";
|
returnURL = "http://";
|
||||||
|
|
||||||
returnURL += host;
|
returnURL += request.getHeader("Referer");
|
||||||
if (!(port == 443 || port == 80))
|
|
||||||
returnURL += ":" + port;
|
|
||||||
returnURL += "/" + contextPath + "/shibboleth-login";
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
shibURL += "?target="+URLEncoder.encode(returnURL, "UTF-8");
|
shibURL += "?target="+URLEncoder.encode(returnURL, "UTF-8");
|
||||||
|
Reference in New Issue
Block a user