This commit is contained in:
Nanne Baars
2019-09-20 17:45:33 +02:00
parent c8ef848657
commit 261f947777
2 changed files with 2 additions and 8 deletions

View File

@ -57,8 +57,8 @@ public class Assignment {
}
public Assignment(String name, String path, List<String> hints) {
if (path.equals("")) {
System.out.println(name);
if (path.equals("") || path.equals("/") || path.equals("/WebGoat/")) {
throw new IllegalStateException("The path of assignment '" + name + "' overrides WebGoat endpoints, please choose a path within the scope of the lesson");
}
this.name = name;
this.path = path;