mirror of
https://github.com/status-im/codimd.git
synced 2025-01-11 16:34:33 +00:00
Fix to sanitize disqus shortnames to remove slashes [Security Issue]
Signed-off-by: Max Wu <jackymaxj@gmail.com>
This commit is contained in:
parent
f9cc2ff0ef
commit
b89a35196a
@ -5,7 +5,7 @@ var disqus_config = function () {
|
||||
};
|
||||
(function() {
|
||||
var d = document, s = d.createElement('script');
|
||||
s.src = 'https://<%= disqus %>.disqus.com/embed.js';
|
||||
s.src = 'https://<%= disqus.replace(/[^A-Za-z0-9]+/g, '') %>.disqus.com/embed.js';
|
||||
s.setAttribute('data-timestamp', +new Date());
|
||||
(d.head || d.body).appendChild(s);
|
||||
})();
|
||||
|
Loading…
x
Reference in New Issue
Block a user