Fix security #122
This commit is contained in:
@@ -56,6 +56,13 @@ import javax.net.ssl.SSLPeerUnverifiedException;
|
||||
@SuppressWarnings("serial")
|
||||
public class ProxyServlet extends HttpServlet {
|
||||
|
||||
static {
|
||||
OptionFlags.ALLOW_INCLUDE = false;
|
||||
if ("true".equalsIgnoreCase(System.getenv("ALLOW_PLANTUML_INCLUDE"))) {
|
||||
OptionFlags.ALLOW_INCLUDE = true;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user