This commit is contained in:
parent
cf509360e6
commit
0ab9889fc8
7 changed files with 535 additions and 131 deletions
|
|
@ -57,6 +57,7 @@ const ANALYTICS_SCRIPT_SRC_PATTERN =
|
|||
function isSafeScriptTag(tag) {
|
||||
if (tag.includes('data-theme-script')) return true;
|
||||
if (tag.includes('data-thumbnail-iframe-script')) return true;
|
||||
if (tag.includes('data-video-thumbnail-script')) return true;
|
||||
if (ANALYTICS_SCRIPT_SRC_PATTERN.test(tag)) return true;
|
||||
const typeMatch = tag.match(/\btype=["']([^"']+)["']/i);
|
||||
if (!typeMatch) return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue