mirror of
https://github.com/gchq/CyberChef
synced 2025-12-22 19:23:40 +00:00
Always display HTML outputs even if they are above the size threshold. Could lead to crashing, but this risk is accepted.
This commit is contained in:
@@ -73,10 +73,10 @@ class Chef {
|
|||||||
// The threshold is specified in KiB.
|
// The threshold is specified in KiB.
|
||||||
const threshold = (options.ioDisplayThreshold || 1024) * 1024;
|
const threshold = (options.ioDisplayThreshold || 1024) * 1024;
|
||||||
const returnType =
|
const returnType =
|
||||||
this.dish.size > threshold ?
|
|
||||||
Dish.ARRAY_BUFFER :
|
|
||||||
this.dish.type === Dish.HTML ?
|
this.dish.type === Dish.HTML ?
|
||||||
Dish.HTML :
|
Dish.HTML :
|
||||||
|
this.dish.size > threshold ?
|
||||||
|
Dish.ARRAY_BUFFER :
|
||||||
Dish.STRING;
|
Dish.STRING;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user