From 96350afbdb77a35decbaba2a262c815217847271 Mon Sep 17 00:00:00 2001 From: Ayane Satomi Date: Sat, 30 Apr 2022 21:16:38 +0800 Subject: [PATCH] URL Encode to be safe Signed-off-by: Ayane Satomi --- starfallex/starfall-ttslib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starfallex/starfall-ttslib.lua b/starfallex/starfall-ttslib.lua index 5cbbda5..1dbb0c2 100644 --- a/starfallex/starfall-ttslib.lua +++ b/starfallex/starfall-ttslib.lua @@ -61,7 +61,7 @@ function speak(ent, txt, remote, variant) end end - http.get(url .. text, function(code, body) + http.get(url .. http.urlEncode(text), function(code, body) if code == 200 then file.writeTemp("tts.mp3", body)