mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-19 19:15:11 +01:00
Merge pull request #13825 from Cameron653/rcon_sanitization
Sanitization
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user