Skip to content

Commit

Permalink
Issue #759
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-stastny committed Jun 24, 2020
1 parent 16838e8 commit 036e4ab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static boolean isUnderShibbolethSession(HttpServletRequest httpServletReq
Enumeration headerNames = httpServletRequest.getHeaderNames();
while(headerNames.hasMoreElements()) {
String hname = (String) headerNames.nextElement();
if (hname.contains(SHIB_PROVIDER_KEY)) {
if (hname.toLowerCase().contains(SHIB_PROVIDER_KEY.toLowerCase())) {
String headerValue = httpServletRequest.getHeader(hname);
if ((headerValue != null) && (!headerValue.trim().equals(""))) {
foundIdentityProvider = true;
Expand All @@ -69,7 +69,7 @@ public static String getShibbolethSessionId(HttpServletRequest httpServletReques
Enumeration headerNames = httpServletRequest.getHeaderNames();
while(headerNames.hasMoreElements()) {
String hname = (String) headerNames.nextElement();
if (hname.contains(SHIB_SESSION_KEY)) {
if (hname.toLowerCase().contains(SHIB_SESSION_KEY.toLowerCase())) {
String headerValue = httpServletRequest.getHeader(hname);
if ((headerValue != null) && (!headerValue.trim().equals(""))) {
return headerValue;
Expand Down

0 comments on commit 036e4ab

Please sign in to comment.