mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
stop battleplan from indirectly crashing the browser
This commit is contained in:
parent
28232656a9
commit
8ee2bf810b
|
@ -195,8 +195,12 @@ function vis_exh(msg, url, lineNo, columnNo, error) {
|
|||
var lsk = Object.keys(ls);
|
||||
lsk.sort();
|
||||
html.push('<p class="b">');
|
||||
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(' <b>' + esc(lsk[a]) + '</b> <code>' + esc(ls[lsk[a]]) + '</code> ');
|
||||
}
|
||||
html.push('</p>');
|
||||
}
|
||||
catch (e) { }
|
||||
|
|
Loading…
Reference in a new issue