From d9979e46ed35e3454644354eac5f73e36ccf3f6a Mon Sep 17 00:00:00 2001 From: "rogan.dawes" Date: Wed, 25 Jul 2007 12:56:51 +0000 Subject: [PATCH] Another place where we need to compare without case git-svn-id: http://webgoat.googlecode.com/svn/trunk@209 4033779f-a91e-0410-96ef-6bf7bf53c507 --- .../org/owasp/webgoat/lessons/BasicAuthentication.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/BasicAuthentication.java b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/BasicAuthentication.java index 700a68910..a6dc78ba5 100644 --- a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/BasicAuthentication.java +++ b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/BasicAuthentication.java @@ -52,7 +52,7 @@ import org.owasp.webgoat.session.WebSession; public class BasicAuthentication extends SequentialLessonAdapter { public final static A ASPECT_LOGO = new A().setHref("http://www.aspectsecurity.com").addElement(new IMG("images/logos/aspect.jpg").setAlt("Aspect Security").setBorder(0).setHspace(0).setVspace(0)); - + private static final String EMPTY_STRING = ""; private static final String WEBGOAT_BASIC = "webgoat_basic"; @@ -110,7 +110,7 @@ public class BasicAuthentication extends SequentialLessonAdapter else { if (headerName.length() > 0 - && !headerName.equals(AUTHORIZATION)) + && !headerName.equalsIgnoreCase(AUTHORIZATION)) { s .setMessage("Basic Authentication header name is incorrect.");