Skip to content

Commit

Permalink
sanitizes some more player input (#3702)
Browse files Browse the repository at this point in the history
closes #3698
  • Loading branch information
harryob committed Jun 23, 2023
1 parent 3aa4f19 commit 39d2f98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/cm_marines/marines_consoles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
if(!authenticated || !target_id_card)
return

var/new_name = params["name"] // reject_bad_name() can be added here
var/new_name = strip_html(params["name"])
if(!new_name)
visible_message(SPAN_NOTICE("[src] buzzes rudely."))
return
Expand All @@ -191,7 +191,7 @@
return

if(target == "Custom")
var/custom_name = params["custom_name"]
var/custom_name = strip_html(params["custom_name"])
if(custom_name)
target_id_card.assignment = custom_name
else
Expand Down

0 comments on commit 39d2f98

Please sign in to comment.