summaryrefslogtreecommitdiff
path: root/public/views/slide.ejs
diff options
context:
space:
mode:
authorWu Cheng-Han2016-11-26 22:55:31 +0800
committerWu Cheng-Han2016-11-26 22:55:31 +0800
commit9d4ede4cffae47b9fd81ffbd0f2edff47c29e224 (patch)
tree93f56b484e527a0e8b0a95c768925876e70d8f1f /public/views/slide.ejs
parentb43e63dd21584c75ab7e0be6fe6331857f09c026 (diff)
Fix possible XSS in yaml-metadata and turn using ejs escape syntax than external lib [Security Issue]
Diffstat (limited to 'public/views/slide.ejs')
-rw-r--r--public/views/slide.ejs10
1 files changed, 5 insertions, 5 deletions
diff --git a/public/views/slide.ejs b/public/views/slide.ejs
index df23988d..cd3be9aa 100644
--- a/public/views/slide.ejs
+++ b/public/views/slide.ejs
@@ -6,12 +6,12 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="mobile-web-app-capable" content="yes">
<% if(typeof robots !== 'undefined' && robots) { %>
- <meta name="robots" content="<%- robots %>">
+ <meta name="robots" content="<%= robots %>">
<% } %>
<% if(typeof description !== 'undefined' && description) { %>
- <meta name="description" content="<%- description %>">
+ <meta name="description" content="<%= description %>">
<% } %>
- <title><%- title %></title>
+ <title><%= title %></title>
<link rel="icon" type="image/png" href="<%- url %>/favicon.png">
<link rel="apple-touch-icon" href="<%- url %>/apple-touch-icon.png">
<% if(useCDN) { %>
@@ -55,10 +55,10 @@
<body>
<div class="container">
<div class="reveal">
- <div class="slides" style="display: none;"><%- body %></div>
+ <div class="slides" style="display: none;"><%= body %></div>
</div>
- <div id="meta" style="display: none;"><%- meta %></div>
+ <div id="meta" style="display: none;"><%= meta %></div>
<div class="footer">
<div class="unselectable hidden-print" style="color: #777;">