Skip to content

Commit

Permalink
Iframely protocol: add an extra type validation for publishers with c…
Browse files Browse the repository at this point in the history
…ustom domain names
  • Loading branch information
iparamonau committed Dec 16, 2024
1 parent 346e3e0 commit 1dffa7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/links/iframely-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export default {

let wlr = whitelistRecord;
if (whitelistRecord.isDefault
&& !Array.isArray(value) && value.href) {
&& !Array.isArray(value) && value.href
&& (!value.type || value.type === CONFIG.T.text_html)) {
wlr = options.getWhitelistRecord(value.href, {exclusiveRel: 'html-meta'});
}

Expand Down

0 comments on commit 1dffa7d

Please sign in to comment.