From f3749fdc3c6187bc4065d76c6a2956521fc01b04 Mon Sep 17 00:00:00 2001 From: Alexey Date: Thu, 25 Jun 2026 12:47:59 +0300 Subject: [PATCH 1/2] Add null guard in iframely-link --- plugins/links/iframely-link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/links/iframely-link.js b/plugins/links/iframely-link.js index a9b79636c..42a4be9aa 100644 --- a/plugins/links/iframely-link.js +++ b/plugins/links/iframely-link.js @@ -20,7 +20,7 @@ export default { const value = typeof(v) === 'string' ? {href: v} : v; // If link has no `media` and no `type` attributes, HTMLMetaHandler assigns the value=href; - if (value.href) { // else it's not a link, it is Iframely-optimized meta fields ("iframely:title", etc.) + if (value && value.href) { // else it's not a link, it is Iframely-optimized meta fields ("iframely:title", etc.) let wlr = whitelistRecord; if (whitelistRecord.isDefault && !Array.isArray(value) && value.href && /^(?:https?:)?\/\//.test(value.href) From b213f623990a1756230e463e83a2db1e20a86975 Mon Sep 17 00:00:00 2001 From: Alexey Date: Thu, 25 Jun 2026 13:20:32 +0300 Subject: [PATCH 2/2] fix after review --- plugins/links/iframely-link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/links/iframely-link.js b/plugins/links/iframely-link.js index 42a4be9aa..1927c9ee5 100644 --- a/plugins/links/iframely-link.js +++ b/plugins/links/iframely-link.js @@ -20,7 +20,7 @@ export default { const value = typeof(v) === 'string' ? {href: v} : v; // If link has no `media` and no `type` attributes, HTMLMetaHandler assigns the value=href; - if (value && value.href) { // else it's not a link, it is Iframely-optimized meta fields ("iframely:title", etc.) + if (value?.href) { // else it's not a link, it is Iframely-optimized meta fields ("iframely:title", etc.) let wlr = whitelistRecord; if (whitelistRecord.isDefault && !Array.isArray(value) && value.href && /^(?:https?:)?\/\//.test(value.href)