summaryrefslogtreecommitdiff
path: root/public/views/pretty.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/pretty.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/pretty.ejs')
-rw-r--r--public/views/pretty.ejs8
1 files changed, 4 insertions, 4 deletions
diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs
index 502aae40..f810a5a9 100644
--- a/public/views/pretty.ejs
+++ b/public/views/pretty.ejs
@@ -9,12 +9,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) { %>
@@ -59,7 +59,7 @@
<% } %>
</small>
</div>
- <div id="doc" class="container markdown-body"><%- body %></div>
+ <div id="doc" class="container markdown-body"><%= body %></div>
<div class="ui-toc dropup unselectable hidden-print" style="display:none;">
<div class="pull-right dropdown">
<a id="tocLabel" class="ui-toc-label btn btn-default" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false" title="Table of content">