Skip to content

Commit

Permalink
fix: treat blob: urls as safe url
Browse files Browse the repository at this point in the history
Signed-off-by: Erfan Safari  <erfanshield@outlook.com>
  • Loading branch information
erfanium authored Nov 12, 2023
1 parent 55d8d83 commit b643a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const changelog =
const emptyPlugins = []
/** @type {Readonly<RemarkRehypeOptions>} */
const emptyRemarkRehypeOptions = {allowDangerousHtml: true}
const safeProtocol = /^(https?|ircs?|mailto|xmpp)$/i
const safeProtocol = /^(https?|ircs?|mailto|xmpp|blob)$/i

// Mutable because we `delete` any time it’s used and a message is sent.
/** @type {ReadonlyArray<Readonly<Deprecation>>} */
Expand Down

0 comments on commit b643a31

Please sign in to comment.