From bc2fc2b4ab88a131e270aed5e7e516a3d5e67632 Mon Sep 17 00:00:00 2001 From: ulrich Date: Sun, 26 Jul 2020 13:01:45 +0000 Subject: [PATCH] SafeMode.SERVER hinzugefuegt --- src/de/uhilger/wbx/web/AdocServlet.java | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/de/uhilger/wbx/web/AdocServlet.java b/src/de/uhilger/wbx/web/AdocServlet.java index cd8f798..a80ba5c 100644 --- a/src/de/uhilger/wbx/web/AdocServlet.java +++ b/src/de/uhilger/wbx/web/AdocServlet.java @@ -37,6 +37,7 @@ import org.asciidoctor.Asciidoctor; import static org.asciidoctor.AttributesBuilder.attributes; import static org.asciidoctor.OptionsBuilder.options; +import org.asciidoctor.SafeMode; @@ -150,10 +151,12 @@ Map<String, Object> options; if(null != backend) { options = options().inPlace(false) + .safe(SafeMode.SERVER) .backend(backend).attributes(attributes).asMap(); } else { options = options().inPlace(false) + .safe(SafeMode.SERVER) .attributes(attributes).asMap(); } -- Gitblit v1.9.3