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:
parent
ea7bb65d4e
commit
e98937d0b3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user