GroupButler icon indicating copy to clipboard operation
GroupButler copied to clipboard

Non-latin symbols in links in the whitelist break the bot

Open mymedia2 opened this issue 8 years ago • 4 comments

The bot is frozen when it tries to send the full whitelist of links if this list contains links with non-latin characters

Steps to reproduce:

  • Add the bot to a supergroup
  • Send the next command /whitelist пример.рф
  • Try to get the list of white links via simply /whitelist command
  • The bot is frozen and doesn't answer anymore

The bot version is 4.2.0 rev.b41a10f

mymedia2 avatar Dec 29 '16 08:12 mymedia2

Wait, is this a DoS on the whole bot?

NotAFile avatar Apr 04 '17 15:04 NotAFile

@NotAFile the "the bot is frozen and doesn't answer anymore" part was fixed with this commit and was caused because the API was returning a "message text must be encoded in utf-8" error while sending the list

RememberTheAir avatar Apr 04 '17 18:04 RememberTheAir

Well, then this can be closed I guess.

NotAFile avatar Apr 04 '17 20:04 NotAFile

But the other problem is still there (/whitelist not working with non-latin characters)

RememberTheAir avatar Apr 04 '17 20:04 RememberTheAir