mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 08:36:00 +01:00
[s] Fixes HTML injections via pet tricks (#87595)
## About The Pull Request Closes #87592 You could pass additional args into emotes with zero sanitization if you got yourself a way to call TGUI acts ## Changelog 🆑 fix: Fixed HTML injections via pet tricks /🆑
This commit is contained in:
@@ -559,6 +559,9 @@ GLOBAL_LIST_EMPTY(virtual_pets_list)
|
||||
return TRUE
|
||||
if(!isnull(trick_name))
|
||||
pet.ai_controller.set_blackboard_key(BB_TRICK_NAME, trick_name)
|
||||
for (var/trick_move in trick_sequence)
|
||||
if (!length(GLOB.emote_list[LOWER_TEXT(trick_move)]))
|
||||
trick_sequence -= trick_move
|
||||
pet.ai_controller.override_blackboard_key(BB_TRICK_SEQUENCE, trick_sequence)
|
||||
playsound(computer.loc, 'sound/mobs/non-humanoids/orbie/orbie_trick_learned.ogg', 50)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user