1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-12-22 16:58:54 +00:00

ALLOW_PLANTUML_INCLUDE

This commit is contained in:
Arnaud Roques 2019-05-20 20:12:41 +02:00
parent ea7bb65d4e
commit e98937d0b3

View File

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