From ac8b84b34897e400e121f822c3f7cef605ff6ee6 Mon Sep 17 00:00:00 2001 From: Vitaliy Vlasov Date: Sat, 2 Dec 2017 21:27:19 +0200 Subject: [PATCH] [FIX #1209] resources/js: wrap undefined responses from jail in a String --- resources/js/bots/console/bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/bots/console/bot.js b/resources/js/bots/console/bot.js index 41e88413b99..570cb1e61da 100644 --- a/resources/js/bots/console/bot.js +++ b/resources/js/bots/console/bot.js @@ -360,7 +360,7 @@ function jsHandler(params, context) { }; messages = []; try { - result["text-message"] = JSON.stringify(eval(params.code)); + result["text-message"] = String(JSON.stringify(eval(params.code))); localStorage.setItem("previousMessage", params.code); } catch (e) { result.err = e;