Page MenuHomePhabricator

D13347.id32294.diff
No OneTemporary

D13347.id32294.diff

diff --git a/src/applications/console/core/DarkConsoleCore.php b/src/applications/console/core/DarkConsoleCore.php
--- a/src/applications/console/core/DarkConsoleCore.php
+++ b/src/applications/console/core/DarkConsoleCore.php
@@ -127,6 +127,13 @@
}
return $data;
} else {
+ // Truncate huge strings. Since the data doesn't really matter much,
+ // just truncate bytes to avoid PhutilUTF8StringTruncator overhead.
+ $length = strlen($data);
+ $max = 4096;
+ if ($length > $max) {
+ $data = substr($data, 0, $max).'...<'.$length.' bytes>...';
+ }
return phutil_utf8ize($data);
}
}

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 6, 4:08 AM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7386724
Default Alt Text
D13347.id32294.diff (652 B)

Event Timeline