mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Replace the session variable being queried to determine if a forced redirect to https is needed.
This commit is contained in:
@@ -257,7 +257,7 @@ public class DSpaceCocoonServletFilter implements Filter
|
||||
realResponse.sendRedirect(locationWithTrailingSlash);
|
||||
}
|
||||
// if force ssl is on and the user has authenticated and the request is not secure redirect to https
|
||||
else if ((ConfigurationManager.getBooleanProperty("xmlui.force.ssl")) && (realRequest.getSession().getAttribute("dspace.current.user.id")!=null) && (!realRequest.isSecure())) {
|
||||
else if ((ConfigurationManager.getBooleanProperty("xmlui.force.ssl")) && (realRequest.getSession().getAttribute("dspace.user.effective")!=null) && (!realRequest.isSecure())) {
|
||||
StringBuffer location = new StringBuffer("https://");
|
||||
location.append(ConfigurationManager.getProperty("dspace.hostname")).append(realRequest.getContextPath()).append(realRequest.getServletPath()).append(
|
||||
realRequest.getQueryString() == null ? ""
|
||||
|
Reference in New Issue
Block a user