Calculate the stage changes correctly
git-svn-id: http://webgoat.googlecode.com/svn/trunk@161 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
@ -924,7 +924,7 @@ public class WebSession
|
||||
RandomLessonAdapter rla = (RandomLessonAdapter) al;
|
||||
int stage = myParser.getIntParameter(STAGE) - 1;
|
||||
String[] stages = rla.getStages();
|
||||
if (stage>0 && stage <= stages.length)
|
||||
if (stage>=0 && stage < stages.length)
|
||||
rla.setStage(this, stages[stage]);
|
||||
} catch (ParameterNotFoundException pnfe) {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user