From 9e095a4bc11d176f97e1c71661360234ce4ef89a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Bostr=C3=B6m?= <20281979+Bostrolicious@users.noreply.github.com> Date: Sat, 21 Jan 2023 21:51:05 +0100 Subject: [PATCH 1/2] Fix HTTP links not working in podcast show notes. --- server/utils/htmlSanitizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/htmlSanitizer.js b/server/utils/htmlSanitizer.js index cdb3cfb0..35421f4f 100644 --- a/server/utils/htmlSanitizer.js +++ b/server/utils/htmlSanitizer.js @@ -10,7 +10,7 @@ function sanitize(html) { allowedAttributes: { a: ['href', 'name', 'target'] }, - allowedSchemes: ['https'], + allowedSchemes: ['http', 'https'], allowProtocolRelative: false } From 89d497a3059d457680ce8b711b67e475cfca3375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Bostr=C3=B6m?= <20281979+Bostrolicious@users.noreply.github.com> Date: Sat, 21 Jan 2023 22:46:38 +0100 Subject: [PATCH 2/2] Fix mailto links not working in podcast show notes. --- server/utils/htmlSanitizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/htmlSanitizer.js b/server/utils/htmlSanitizer.js index 35421f4f..e9473d30 100644 --- a/server/utils/htmlSanitizer.js +++ b/server/utils/htmlSanitizer.js @@ -10,7 +10,7 @@ function sanitize(html) { allowedAttributes: { a: ['href', 'name', 'target'] }, - allowedSchemes: ['http', 'https'], + allowedSchemes: ['http', 'https', 'mailto'], allowProtocolRelative: false }