mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Only allow blob URLs in restricted tags
This commit is contained in:
parent
b636209d3e
commit
69664dc0ef
@ -358,7 +358,7 @@ define([
|
||||
// Only allow iframe, video and audio with local source
|
||||
var checkSrc = function (root) {
|
||||
if (restrictedTags.indexOf(root.nodeName.toUpperCase()) === -1) { return true; }
|
||||
return root.getAttribute && /^(blob\:|\/)/.test(root.getAttribute('src'));
|
||||
return root.getAttribute && /^blob\:/.test(root.getAttribute('src'));
|
||||
};
|
||||
|
||||
var removeForbiddenTags = function (root) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user