ZeruLight / Erupe

Monster Hunter Frontier Server Emulator
https://discord.gg/DnwcpXM488
MIT License
200 stars 53 forks source link

fix discord bot unknown character vulnerability crashing the server. #116

Open Brentdbr opened 9 months ago

Brentdbr commented 9 months ago

There is an issue where if a message containing unsupported characters (e.g. ( ͡° ͜ʖ ͡°), 𒀜) gets sent in the set discord relay channel, the entire server crashes with an error stating that the rune sent is not supported. This commit adds a regex rule that aims to filter out any characters not belonging to Hiragana, Katakana, Kanji, Alphanumeric and Japanese special characters such as 「」.