Fix a crash exploit related to extremely long death messages or text
This commit is contained in:
parent
6a27d51261
commit
a81165026c
2 changed files with 14 additions and 4 deletions
|
|
@ -950,6 +950,13 @@ namespace TShockAPI
|
|||
return;
|
||||
}
|
||||
|
||||
if (args.Text.Length > 500)
|
||||
{
|
||||
Utils.Kick(tsplr, "Crash attempt", true);
|
||||
args.Handled = true;
|
||||
return;
|
||||
}
|
||||
|
||||
/*if (!Utils.ValidString(text))
|
||||
{
|
||||
e.Handled = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue