Browse Source

Align html sanitizing closer to upstream

lets-bump-hometown-to-mastodon-4.2
nachtjasmin 2 years ago
parent
commit
1cc6d4bfcf
No known key found for this signature in database
  1. 6
      lib/sanitize_ext/sanitize_config.rb

6
lib/sanitize_ext/sanitize_config.rb

@ -84,10 +84,7 @@ class Sanitize
},
},
protocols: {
'a' => { 'href' => HTTP_PROTOCOLS },
'blockquote' => { 'cite' => HTTP_PROTOCOLS },
},
protocols: {},
transformers: [
CLASS_WHITELIST_TRANSFORMER,
@ -106,7 +103,6 @@ class Sanitize
'iframe' => %w(allowfullscreen frameborder height scrolling src width),
'source' => %w(src type),
'video' => %w(controls height loop width),
'div' => [:data],
},
protocols: {

Loading…
Cancel
Save