merging from upstream WebGoat
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
22c4ed27e4
@ -523,6 +523,7 @@ public abstract class AbstractLesson extends Screen implements Comparable<Object
|
|||||||
// System.out.println("Solution: " + getLessonSolutionFileName());
|
// System.out.println("Solution: " + getLessonSolutionFileName());
|
||||||
src = readFromFile(new BufferedReader(new FileReader(getLessonSolutionFileName())), false);
|
src = readFromFile(new BufferedReader(new FileReader(getLessonSolutionFileName())), false);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
logger.error("Could not find solution for {}", getLessonSolutionFileName());
|
||||||
s.setMessage("Could not find the solution file");
|
s.setMessage("Could not find the solution file");
|
||||||
src = ("Could not find the solution file or solution file does not exist.<br/>"
|
src = ("Could not find the solution file or solution file does not exist.<br/>"
|
||||||
+ "Send this message to: <a href=\"mailto:" + s.getWebgoatContext().getFeedbackAddress()
|
+ "Send this message to: <a href=\"mailto:" + s.getWebgoatContext().getFeedbackAddress()
|
||||||
|
@ -315,7 +315,7 @@ public class Course {
|
|||||||
lesson.setLessonPlanFileName(lessonPlan.getKey(), lessonPlan.getValue().toString());
|
lesson.setLessonPlanFileName(lessonPlan.getKey(), lessonPlan.getValue().toString());
|
||||||
}
|
}
|
||||||
if (plugin.getLessonSolution("en").isPresent()) {
|
if (plugin.getLessonSolution("en").isPresent()) {
|
||||||
lesson.setLessonSolutionFileName(plugin.getLessonSolution("en").toString());
|
lesson.setLessonSolutionFileName(plugin.getLessonSolution("en").get().toString());
|
||||||
}
|
}
|
||||||
if (plugin.getLessonSource().isPresent()) {
|
if (plugin.getLessonSource().isPresent()) {
|
||||||
lesson.setSourceFileName(plugin.getLessonSource().get().toString());
|
lesson.setSourceFileName(plugin.getLessonSource().get().toString());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user