empty chat messages can be sent

Please come here to inform us of new and interesting bugs so we can hunt them down and destroy them! Pics and videos demonstrating these bugs are also welcome!
Post Reply
FloppyDisk
Posts: 36
Joined: Thu Mar 11, 2021 6:14 pm

empty chat messages can be sent

Post by FloppyDisk » Thu Apr 29, 2021 6:01 pm

Sending a message containing only '\r' (new line character) when pressing enter after not typing a message
The '\r' is later stripped out, but a blank message is sent anyway

PLNetworkManager.Update()

Replace
else if (c != Environment.NewLine[0])

With
else if (c != '\r' && c != '\n')
FloppyDisk | Storage Media

User avatar
cptslog
Leafy Developer
Leafy Developer
Posts: 1092
Joined: Sun Sep 08, 2013 9:08 pm

Re: empty chat messages can be sent

Post by cptslog » Tue Jun 15, 2021 11:20 am

Thanks for the report and info, it's very helpful!

We will look into this shortly

Post Reply