From 8ee2bf810bba10d53937ab51d27f7e0574bfe420 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 13 Dec 2022 18:58:16 +0000 Subject: [PATCH] stop battleplan from indirectly crashing the browser --- copyparty/web/util.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/copyparty/web/util.js b/copyparty/web/util.js index 313683be..661e1cea 100644 --- a/copyparty/web/util.js +++ b/copyparty/web/util.js @@ -195,8 +195,12 @@ function vis_exh(msg, url, lineNo, columnNo, error) { var lsk = Object.keys(ls); lsk.sort(); html.push('

'); - for (var a = 0; a < lsk.length; a++) + for (var a = 0; a < lsk.length; a++) { + if (ls[lsk[a]].length > 9000) + continue; + html.push(' ' + esc(lsk[a]) + ' ' + esc(ls[lsk[a]]) + ' '); + } html.push('

'); } catch (e) { }