NamelessMC / Nameless

NamelessMC is a free, easy to use & powerful website software for your Minecraft server, which includes a large range of features.
https://namelessmc.com/
MIT License
597 stars 312 forks source link

Fix Discord webhook entity decoding #3509

Closed samerton closed 1 month ago

samerton commented 1 month ago

Also fix topicReply enabled webhooks not showing in StaffCP forum setup

Closes #3486

Derkades commented 1 month ago

As discussed in Discord, it might be a good idea to change this function to strip HTML tags as well, as Discord does not expect HTML content.

samerton commented 1 month ago

As discussed in Discord, it might be a good idea to change this function to strip HTML tags as well, as Discord does not expect HTML content.

Fortunately this is done just before we perform the decoding, leaving us with just special characters at this point: https://github.com/NamelessMC/Nameless/blob/fb1bc1f813f0bfb0099630113c42963394b03b0d/core/classes/Misc/Text.php#L172