ALLOW_PLANTUML_INCLUDE

This commit is contained in:
Arnaud Roques 2019-05-20 20:12:41 +02:00
parent ea7bb65d4e
commit e98937d0b3
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,9 @@ public class PlantUmlServlet extends HttpServlet {
private static final Pattern RECOVER_UML_PATTERN = Pattern.compile("/uml/(.*)");
static {
OptionFlags.ALLOW_INCLUDE = false;
if ("true".equalsIgnoreCase(System.getenv("ALLOW_PLANTUML_INCLUDE"))) {
OptionFlags.ALLOW_INCLUDE = true;
}
}
@Override