From 7d4895d5d4a093041e3e6c8a8676f3b99bb477b7 Mon Sep 17 00:00:00 2001 From: cheapie Date: Mon, 9 Sep 2024 14:08:39 -0500 Subject: [PATCH] Disallow LCD messages that aren't strings or numbers (#89) --- lcd.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lcd.lua b/lcd.lua index 105a66e..1f5f33f 100644 --- a/lcd.lua +++ b/lcd.lua @@ -259,6 +259,8 @@ local on_digiline_receive = function(pos, _, channel, msg) local setchan = meta:get_string("channel") if setchan ~= channel then return end + if type(msg) ~= "string" and type(msg) ~= "number" then return end + meta:set_string("text", msg) meta:set_string("infotext", msg)