& symbol not properly decoded in removal reasons

https://www.reddit.com/r/toolbox/comments/1ffvs00/symbol_not_properly_decoded_in_removal_reasons/

created by 9Ghillie on 13/09/2024 at 14:14 UTC

3 upvotes, 1 top-level comments (showing 1)

Using v6.1.15, if the & symbol is included in the removal reason name or the applied flair, it's not properly decoded when removing a submission.

The applied flair will also have the encoded `&` and is sometimes doubled.

Screenshots: [1][1], [2][2]

1: https://i.imgur.com/qunmLlo.png

2: https://i.imgur.com/VBmggxE.jpeg

Did not test any other symbols, or in any other fields besides the *removal reason title* and *flair text*.

--------------------------------------------------------------------------------

┌────────────────────────┬─────────────��─────────────────────────┐
│          Info          │                                  │
╞════════════════════════╪═══════════════════════════════════════╡
│ *Toolbox version*      │ 6.1.15                                │
├────────────────────────┼───────────────────────────────────────┤
│ *Browser name*         │ Firefox                               │
├────────────────────────┼───────────────────────────────────────┤
│ *Browser version*      │ 130                                   │
├───────────────��────────┼───────────────────────────────────────┤
│ *Platform information* │ Windows NT 10.0; Win64; x64; rv:130.0 │
├────────────────────────┼───────────────────────────────────────┤
│ *Beta Mode*            │ true                                  │
├────────────────────────┼───────────────────────────────────────┤
│ *Debug Mode*           │ false                                 │
├────────────────────────┼───────────────────────────────────────┤
│ *Compact Mode*         │ false                                 │
├────────────────────────┼───────────────────────────────────────┤
│ *Advanced Settings*    │ true                                  │
├────────────────────────┼───────────────────────────────────────┤
│ *Cookies Enabled*      │ true                                  │
└────────────────────────┴───────────────────────────────────────┘

Comments

Comment by eritbh at 13/09/2024 at 22:11 UTC

1 upvotes, 1 direct replies

This is an old known issue[1] and fixing it will unfortunately require us to make changes to how we store the reasons due to legacy issues, so it's not likely to be fixed any time soon as long as I'm the only one working on the project and my time is focused on other areas.

1: https://github.com/toolbox-team/reddit-moderator-toolbox/issues/199