URL Encode to be safe

Signed-off-by: Ayane Satomi <ayane@vignetteapp.org>
This commit is contained in:
Ayane Satomi 2022-04-30 21:16:38 +08:00
parent a3d0bf43c0
commit 96350afbdb

View file

@ -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)