mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Merge pull request #14588 from SteelSlayer/href-fix
Fixes server issues
This commit is contained in:
@@ -159,6 +159,11 @@ var/list/chatResources = list(
|
||||
return
|
||||
|
||||
if(cookie != "none")
|
||||
var/regex/crashy_thingy = new /regex("(\\\[ *){5}")
|
||||
if(crashy_thingy.Find(cookie))
|
||||
message_admins("[key_name(src.owner)] tried to crash the server using malformed JSON")
|
||||
log_admin("[key_name(owner)] tried to crash the server using malformed JSON")
|
||||
return
|
||||
var/list/connData = json_decode(cookie)
|
||||
if(connData && islist(connData) && connData.len > 0 && connData["connData"])
|
||||
connectionHistory = connData["connData"]
|
||||
|
||||
Reference in New Issue
Block a user