mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-12 12:33:18 +00:00
refine return url
This commit is contained in:
@@ -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");
|
||||||
|
Reference in New Issue
Block a user