Skip to content
Snippets Groups Projects
  1. Jan 12, 2023
  2. Dec 24, 2022
  3. Sep 18, 2022
  4. Jul 31, 2022
    • HJ's avatar
      --fix · fddb531e
      HJ authored
      fddb531e
  5. May 22, 2022
  6. May 21, 2022
  7. Apr 30, 2022
  8. Feb 22, 2022
  9. Nov 16, 2021
    • rinpatch's avatar
      entity_normalizer: Escape name when parsing user · d36b45ad
      rinpatch authored
      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]: !1052
      [2]: pleroma!2167
      [3]: !1392
      d36b45ad
  10. Dec 02, 2020
  11. Nov 18, 2020
  12. Oct 20, 2020
  13. Jul 08, 2020
  14. Jun 21, 2020
  15. Jun 19, 2020
  16. Jun 09, 2020
  17. May 25, 2020
  18. May 10, 2020
  19. May 03, 2020
Loading