mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 22:19:30 +01:00
[MIRROR] [s] sanitizes nanite extra settings (#426)
* [s] sanitizes nanite extra settings (#53065) /datum/nanite_extra_setting/text/get_value() return html_encode(value) HTML injection bad. Brainwashing and potentially happiness programs are all subject to this, unless code has changed for how objective text is rendered. I don't think there's any case where nanites even need to be able to accept raw html. * [s] sanitizes nanite extra settings Co-authored-by: silicons <2003111+silicons@users.noreply.github.com>
This commit is contained in:
@@ -10,6 +10,9 @@
|
||||
/datum/nanite_extra_setting/text/get_copy()
|
||||
return new /datum/nanite_extra_setting/text(value)
|
||||
|
||||
/datum/nanite_extra_setting/text/get_value()
|
||||
return html_encode(value)
|
||||
|
||||
/datum/nanite_extra_setting/text/get_frontend_list(name)
|
||||
return list(list(
|
||||
"name" = name,
|
||||
|
||||
Reference in New Issue
Block a user