Merge pull request #13825 from Cameron653/rcon_sanitization

Sanitization
This commit is contained in:
Casey
2022-10-02 13:58:21 -04:00
committed by GitHub
27 changed files with 83 additions and 53 deletions
+5 -1
View File
@@ -86,10 +86,14 @@
if (!holder)
return
var/msg = sanitize(tgui_input_text(usr, "Message:", text("Subtle PM to [M.key]")))
var/msg = tgui_input_text(usr, "Message:", text("Subtle PM to [M.key]"))
if (!msg)
return
if(!(msg[1] == "<" && msg[length(msg)] == ">")) //You can use HTML but only if the whole thing is HTML. Tries to prevent admin 'accidents'.
msg = sanitize(msg)
if(usr)
if (usr.client)
if(usr.client.holder)