From bca4cdcbbc4f098850d11a65d99e9b85b6a17165 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 11 Jun 2024 01:36:14 -0300 Subject: [skip ci] some obvious sanitization issues --- npc/functions/aurora.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/npc/functions/aurora.txt b/npc/functions/aurora.txt index 0e2c81a60..9492b7ea5 100644 --- a/npc/functions/aurora.txt +++ b/npc/functions/aurora.txt @@ -814,7 +814,9 @@ function script FYRewardEvent { DelItemFromEveryPlayer(EventOre); */ // Specing wants scoreboards to be preserved - api_send(505, "[79, 21698, '', \""+.@score$+"\"]"); + // Needs sanitization, or "\n" breaks it + .@score$=replacestr(.@score$, "\n", "\\n"); + api_send(505, "[79, 21698, \"\", \""+.@score$+"\"]"); } consolebug "FYRewardEvent end %d", gettimetick(0); return; -- cgit v1.2.3-70-g09d2