diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-02-07 15:24:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-07 15:24:22 +0100 |
commit | a64973aecff0595bd34a6e70393d471b8dbf1841 (patch) | |
tree | a9ecb615cf0310cab7b48360ff8edd71562a4979 /app/lib | |
parent | 02236332bab7c5cc4ddf4a3a778fd956f6851322 (diff) |
Fix malformed HTML causing uncaught error (#13042)
Fix OEmbed preview API leaking existence of private statuses (see #12930)
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/formatter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb index 2c5674869..e6f5d7a63 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -46,6 +46,8 @@ class Formatter def reformat(html) sanitize(html, Sanitize::Config::MASTODON_STRICT) + rescue ArgumentError + '' end def plaintext(status) |