English Break line bug

3 replies
Goto Page
To the start Previous 1 Next To the start
22.08.19 11:04:47 pm
Up
I made a custom msg function, so when someone sends message, server sends msg2 to other players.

Some guy figured out a way to fake a break line and he could write a paragraph with one message

Can someone share what character did he write to do that?

I made a server that saves players names in a text file and I noticed that some lines are broken so my guess is that they had that character in their name so my function detected it as "\n" and made line breaks there, which is not good
23.08.19 03:31:47 pm
Up
Mora_rus
User
Offline Off
Well never heard that you can imitate it :C even i got interested in it.

Check names by finding "\n" and try to use
string.gsub(text,"\n","")
then censor them or save string.gsub name.
S.T.A.L.K.E.R. - The Lost Land dev. https://discord.gg/aABCkHQ
23.08.19 05:32:10 pm
Up
Hajt
User
Offline Off
brah use this function to display user input on chat

Code:
1
2
3
4
5
6
7
function escapeString(text)
     while text:sub(-2) == '@C' do
          text = text:sub(1, -3)
     end
     text = string.gsub(text, "[\166]", " ")
     return text
end


without this i can send such things
https://imgur.com/twoHDSo.jpg
Yooo. We are playing mix matches 5on5 in evening hours on the server CS2D.TK | Mix/Match, you can join us, server password is match. Statistics, leaderboard can be found under the following link.
23.08.19 11:57:38 pm
Up
@user Hajt:

this is it !
To the start Previous 1 Next To the start