From fa36a361778c680b5cc9461541b7f6bee6e4321d Mon Sep 17 00:00:00 2001 From: brulijam Date: Tue, 2 Jul 2024 17:48:52 +0200 Subject: [PATCH] did stuff --- src/brulijam/lib/basic.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/brulijam/lib/basic.lua b/src/brulijam/lib/basic.lua index 6d11c17..b6029b4 100755 --- a/src/brulijam/lib/basic.lua +++ b/src/brulijam/lib/basic.lua @@ -72,8 +72,10 @@ end function addTutelToTutelServer() local tutelServer = getTutelServerAddress() local telegramInfo = getTelegramInfo() - http.post(tutelServer .. "/tutel/add?label=" .. os.getComputerLabel() .. "&telegramUserId=" .. telegramInfo["telegramUserId"], "") - telegramNotifier("Added Tutel to your Account: " .. os.getComputerLabel()) + local label = os.getComputerLabel() + local escapedLabel = string.gsub(label, "-", "\\-") + http.post(tutelServer .. "/tutel/add?label=" .. label .. "&telegramUserId=" .. telegramInfo["telegramUserId"], "") + telegramNotifier("Tutel was added to your Account: " .. escapedLabel) end function splitStringToArray(inputStr)