gearheads
/
mastodon
Archived
2
0
Fork 0
Commit Graph

7 Commits (05e3abe9d90c32891d87283ffdccf6dddc4e0f9c)

Author SHA1 Message Date
Claire 3a6451c867
Add support for incoming rich text () 2023-03-03 20:19:29 +01:00
Claire 15b88a83ab
Fix sanitizer parsing link text as HTML when stripping unsupported links () 2023-01-11 22:21:10 +01:00
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
2021-03-19 02:42:43 +01:00
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 
2020-02-08 21:22:38 +01:00
BSKY fccf83e1f2 Add noopener and/or noreferrer () 2019-10-24 22:44:42 +02:00
ThibG fda437a020 Fix sanitizing lists contents ()
* Add test

* Fix code for sanitizing nested lists stripping all tags
2019-07-19 01:44:58 +02:00
Eugen Rochko 103a9f4466
Fix sanitizer making block level elements unreadable ()
Fix 
2019-06-16 21:46:36 +02:00