Merge pull request #14588 from SteelSlayer/href-fix

Fixes server issues
This commit is contained in:
AffectedArc07
2020-10-11 23:53:40 +01:00
committed by GitHub
+5
View File
@@ -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"]