WebBox Klassenbibliothek
ulrich
2020-07-26 bc2fc2b4ab88a131e270aed5e7e516a3d5e67632
SafeMode.SERVER hinzugefuegt
1 files modified
3 ■■■■■ changed files
src/de/uhilger/wbx/web/AdocServlet.java 3 ●●●●● patch | view | raw | blame | history
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();
    }