Fixed WEB-198 Text of the lesson plan not above the assignment

This commit is contained in:
nbaars 2015-02-23 12:43:26 +01:00
parent cce6e2ff99
commit 32b6ef9c53
2 changed files with 6 additions and 5 deletions

View File

@ -1,9 +1,5 @@
package org.owasp.webgoat.lessons;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
import org.apache.ecs.Element;
import org.apache.ecs.ElementContainer;
import org.apache.ecs.StringElement;
@ -16,6 +12,11 @@ import org.apache.ecs.html.TR;
import org.apache.ecs.html.Table;
import org.owasp.webgoat.session.WebSession;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
/**
* *************************************************************************************************
*
@ -157,7 +158,7 @@ public abstract class LessonAdapter extends AbstractLesson {
StringBuffer buff = new StringBuffer();
String lang = s.getCurrrentLanguage();
try {
String fileName = s.getWebResource(getLessonPlanFileName(lang));
String fileName = getLessonPlanFileName(lang);
if (fileName != null) {
BufferedReader in = new BufferedReader(new FileReader(fileName));
String line = null;