1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Compare commits

...

2 commits

Author SHA1 Message Date
Matt Jankowski
bb80fe7f2c
Merge ac329e3aca into 549ab089ee 2024-07-31 11:06:48 +00:00
Matt Jankowski
ac329e3aca Rename transformer constant in sanitizer 2024-07-17 10:27:56 -04:00

View file

@ -21,7 +21,7 @@ class Sanitize
gemini
).freeze
CLASS_WHITELIST_TRANSFORMER = lambda do |env|
ALLOWED_CLASS_TRANSFORMER = lambda do |env|
node = env[:node]
class_list = node['class']&.split(/[\t\n\f\r ]/)
@ -84,7 +84,7 @@ class Sanitize
protocols: {},
transformers: [
CLASS_WHITELIST_TRANSFORMER,
ALLOWED_CLASS_TRANSFORMER,
TRANSLATE_TRANSFORMER,
UNSUPPORTED_ELEMENTS_TRANSFORMER,
UNSUPPORTED_HREF_TRANSFORMER,