A bunch of sanitization fixes (#89477)

## About The Pull Request

- Adds sanitization to windoor names and circuit shells.
- Fixes a (mostly useless) href exploit with wizard's contracts.

## Why It's Good For The Game
Sanitizing input is probably good.

## Changelog
🆑
fix: Fixed a few sanitization issues.
/🆑
This commit is contained in:
leaKsi
2025-03-12 16:01:51 -04:00
committed by Roxy
parent 8a79224906
commit 05c77a3f70
7 changed files with 26 additions and 11 deletions
@@ -720,7 +720,7 @@ GLOBAL_LIST_EMPTY_TYPED(integrated_circuits, /obj/item/integrated_circuit)
/// Sets the display name that appears on the shell.
/obj/item/integrated_circuit/proc/set_display_name(new_name)
display_name = copytext(new_name, 1, label_max_length)
display_name = copytext_char(new_name, 1, label_max_length)
if(!shell)
return