pleroma-fe/src/services
rinpatch d36b45ad43 entity_normalizer: Escape name when parsing user
In January 2020 Pleroma backend stopped escaping HTML in display names
and passed that responsibility on frontends, compliant with Mastodon's
version of Mastodon API [1]. Pleroma-FE was subsequently modified to
escape the display name [2], however only in the "name_html" field. This
was fine however, since that's what the code rendering display names used.

However, 2 months ago an MR [3] refactoring the way the frontend does emoji
and mention rendering was merged. One of the things it did was moving away
from doing emoji rendering in the entity normalizer and use the unescaped
'user.name' in the rendering code, resulting in HTML injection being
possible again.

This patch escapes 'user.name' as well, as far as I can tell there is no
actual use for an unescaped display name in frontend code, especially
when it comes from MastoAPI, where it is not supposed to be HTML.

[1]: https://git.pleroma.social/pleroma/pleroma-fe/-/merge_requests/1052
[2]: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/2167
[3]: https://git.pleroma.social/pleroma/pleroma-fe/-/merge_requests/1392
2021-11-16 20:35:23 +03:00
..
api streamlined WS flow, reduced spam amount related to WS reconnections 2021-03-09 02:38:10 +02:00
backend_interactor_service fixed few-posts TLs when streaming is enabled 2021-01-13 22:17:29 +02:00
chat_service get rid of older messages when scrolling down in chat to keep it from bloating dom 2021-02-17 10:16:58 +02:00
chat_utils Optimistic message sending for chat 2020-11-01 23:36:58 +03:00
color_convert fix v2 breezy themes having messed up pressed buttons. updated v2.1 breezy 2020-02-12 00:46:48 +02:00
completion Rewrite word split imperatively for control 2020-08-28 12:02:52 +03:00
component_utils Fix bug to get wrapped component prop name list 2019-02-28 12:40:22 -05:00
date_utils Feature/polls attempt 2 2019-06-18 20:28:31 +00:00
desktop_notification_utils Add desktop chat notifications 2020-07-13 06:27:51 +03:00
entity_normalizer entity_normalizer: Escape name when parsing user 2021-11-16 20:35:23 +03:00
errors Fix #750 , fix error messages and captcha resetting 2020-01-14 13:45:00 +00:00
export_import cleanup + fix 2021-03-08 21:56:20 +02:00
favicon_service handle multiple favicons (different sizes) 2021-06-02 12:47:54 +03:00
file_size_format npm eslint --fix . 2019-07-05 10:02:14 +03:00
file_type experimental flash support through ruffle 2021-04-09 19:14:05 +03:00
follow_manipulate fix follow 2020-04-22 15:06:10 +03:00
follow_request_fetcher rename to promiseInterval 2020-09-04 11:19:53 +03:00
gesture_service fix typo 2019-03-28 22:11:05 +02:00
html_converter fix tests 2021-08-15 02:59:14 +03:00
locale Use native language names in the language picker 2021-01-21 14:24:16 +03:00
matcher Added tag extractor method and spec 2019-02-07 14:46:10 -07:00
new_api Merge branch 'revert-c2c48ec2' into 'develop' 2019-12-14 14:12:41 +00:00
notification_utils add basic validation for statusless status notifications 2021-02-26 14:27:25 +02:00
notifications_fetcher streamlined WS flow, reduced spam amount related to WS reconnections 2021-03-09 02:38:10 +02:00
offset_finder comment, cleanup and improve autoresize/autoscroll 2019-09-25 19:30:55 +03:00
promise_interval fix back button size, fix missing chat notifications being marked as read too eagerly, fix promiseinterval erroring when not getting a promise 2020-10-27 10:03:04 +02:00
push Add view for moves notifications 2019-12-11 00:00:45 +09:00
ruffle_service do not load ruffle multiple times! 2021-04-12 01:15:59 +03:00
status_parser StatusParser: Remove unused removeAttachmentLinks. 2020-06-11 18:39:19 +02:00
status_poster make idempotency watch entire status 2020-07-16 10:18:18 +03:00
style_setter fixed another problem with p's broken theme causing theme editor to 2021-03-08 19:19:16 +02:00
theme_data fixed console errors, improved user-selecting, added cyantexting 2021-06-11 11:49:32 +03:00
timeline_fetcher streamlined WS flow, reduced spam amount related to WS reconnections 2021-03-09 02:38:10 +02:00
user_highlighter new mentions look 2021-06-07 23:42:04 +03:00
user_profile_link_generator Fix: Change condition 2019-03-28 18:43:03 -07:00
version update regex for commit hash 2019-07-05 11:11:31 -04:00
window_utils Add Chats 2020-07-08 15:21:31 +03:00
resettable_async_component.js Improve settings-modal async loading, update vue to 2.6.11 to be able 2020-05-25 16:11:05 +03:00