Merge pull request #16116 from LetterN/patch-11

[s] ensure key config is set for any secure request
This commit is contained in:
SandPoot
2024-12-04 19:20:12 -03:00
committed by GitHub
+1 -1
View File
@@ -26,7 +26,7 @@
var/require_comms_key = FALSE
/datum/world_topic/proc/TryRun(list/input, addr)
key_valid = config && (CONFIG_GET(string/comms_key) == input["key"])
key_valid = (CONFIG_GET(string/comms_key) == input["key"]) && CONFIG_GET(string/comms_key) && input["key"]
if(require_comms_key && !key_valid)
return "Bad Key"
input -= "key"