Fix
This commit is contained in:
parent
c8ef848657
commit
261f947777
@ -57,8 +57,8 @@ public class Assignment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Assignment(String name, String path, List<String> hints) {
|
public Assignment(String name, String path, List<String> hints) {
|
||||||
if (path.equals("")) {
|
if (path.equals("") || path.equals("/") || path.equals("/WebGoat/")) {
|
||||||
System.out.println(name);
|
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.name = name;
|
||||||
this.path = path;
|
this.path = path;
|
||||||
|
@ -47,10 +47,4 @@ public class HttpBasicsInterceptRequest extends AssignmentEndpoint {
|
|||||||
return trackProgress(failed().feedback("http-proxies.intercept.failure").build());
|
return trackProgress(failed().feedback("http-proxies.intercept.failure").build());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ExceptionHandler(MissingServletRequestParameterException.class)
|
|
||||||
public AttackResult handleMissingParams() {
|
|
||||||
return trackProgress(failed().feedback("http-proxies.intercept.failure").build());
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user