Commit Graph

5 Commits (aa94c3355f98af79df63ca93141d0bed570f04fe)

Author SHA1 Message Date
Claire a4dcaef53b
Prepare Mastodon for zeitwerk autoloader ()
* Prepare Mastodon for zeitwerk autoloader (Rails 6)

Add inflections and rename/move a few classes.

In particular, app/lib/exceptions.rb and app/lib/sanitize_config.rb
were manually loaded while still in autoload paths.

* Add inflection for Url → URL
Eugen Rochko b1349342d2
Fix rendering `<a>` without `href` when scheme unsupported ()
- Disallow links with relative paths
- Disallow iframes with non-http protocols and relative paths

Close 
BSKY fccf83e1f2 Add noopener and/or noreferrer ()
ThibG fda437a020 Fix sanitizing lists contents ()
* Add test

* Fix code for sanitizing nested lists stripping all tags
Eugen Rochko 103a9f4466
Fix sanitizer making block level elements unreadable ()
Fix