From 1743a97c228aa6151dca5bd22eacc36dbc857ba4 Mon Sep 17 00:00:00 2001 From: Max Wu Date: Sun, 3 Mar 2019 18:32:58 +0800 Subject: [PATCH] Fix possible MathJax XSS issue [Security Issue] see more at: http://docs.mathjax.org/en/latest/safe-mode.html Signed-off-by: Max Wu --- public/views/codimd/foot.ejs | 2 ++ public/views/pretty.ejs | 2 ++ public/views/slide.ejs | 2 ++ 3 files changed, 6 insertions(+) diff --git a/public/views/codimd/foot.ejs b/public/views/codimd/foot.ejs index 98cbcec2..d054279e 100644 --- a/public/views/codimd/foot.ejs +++ b/public/views/codimd/foot.ejs @@ -8,6 +8,7 @@ + @@ -23,5 +24,6 @@ <% } else { %> + <%- include ../build/index-pack-scripts %> <% } %> diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs index 17516f96..12561a3f 100644 --- a/public/views/pretty.ejs +++ b/public/views/pretty.ejs @@ -80,6 +80,7 @@ + @@ -92,6 +93,7 @@ <% } else { %> + <%- include build/pretty-pack-scripts %> <% } %> <%- include shared/ga %> diff --git a/public/views/slide.ejs b/public/views/slide.ejs index bbdf5899..a92e1dae 100644 --- a/public/views/slide.ejs +++ b/public/views/slide.ejs @@ -96,6 +96,7 @@ + @@ -108,6 +109,7 @@ <% } else { %> + <%- include build/slide-pack-scripts %> <% } %>