Make the test for the Auth header name case-insensitive
git-svn-id: http://webgoat.googlecode.com/svn/trunk@204 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
parent
043c0e5926
commit
add34a24dc
@ -100,7 +100,7 @@ public class BasicAuthentication extends SequentialLessonAdapter
|
|||||||
//<START_OMIT_SOURCE>
|
//<START_OMIT_SOURCE>
|
||||||
// FIXME: This won;t work for CBT, we need to use the UserTracker
|
// FIXME: This won;t work for CBT, we need to use the UserTracker
|
||||||
//Authorization: Basic Z3Vlc3Q6Z3Vlc3Q=
|
//Authorization: Basic Z3Vlc3Q6Z3Vlc3Q=
|
||||||
if (headerName.equals(AUTHORIZATION)
|
if (headerName.equalsIgnoreCase(AUTHORIZATION)
|
||||||
&& (headerValue.equals("guest:guest") || headerValue
|
&& (headerValue.equals("guest:guest") || headerValue
|
||||||
.equals("webgoat:webgoat")))
|
.equals("webgoat:webgoat")))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user