mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-22 03:36:39 +00:00
074f352709
This changes parseDescription to properly encode things to be safe for usage without removing things like backslashes that may be relevant. * text.SanitizePlaintext already calls html.UnescapeString so we don't have to do that * Replace \n with space early * Remove duplicate white-space by splitting on fields and joining * HTML-escape the string we have * For extra certainty, encode the backslash as \ Fixes #1549 |
||
---|---|---|
.. | ||
about.go | ||
assets.go | ||
base.go | ||
confirmemail.go | ||
customcss.go | ||
domain-blocklist.go | ||
etag.go | ||
opengraph.go | ||
opengraph_test.go | ||
profile.go | ||
robots.go | ||
rss.go | ||
settings-panel.go | ||
thread.go | ||
web.go |