mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-04 16:54:11 -04:00
Fix possible XSS in yaml-metadata and turn using ejs escape syntax than external lib [Security Issue]
This commit is contained in:
parent
b43e63dd21
commit
9d4ede4cff
8 changed files with 15 additions and 24 deletions
|
@ -5,7 +5,7 @@ var disqus_config = function () {
|
|||
};
|
||||
(function() {
|
||||
var d = document, s = d.createElement('script');
|
||||
s.src = '//<%- disqus %>.disqus.com/embed.js';
|
||||
s.src = '//<%= disqus %>.disqus.com/embed.js';
|
||||
s.setAttribute('data-timestamp', +new Date());
|
||||
(d.head || d.body).appendChild(s);
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue