1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-21 09:48:47 +02:00
phorge-phorge/src/applications/console
epriestley 2eb73619d1 Truncate large strings in DarkConsole
Summary:
Ref T8597.  If a page issues a large query (like inserting a blob into file storage), we may try to utf8ize the entire thing. This is slow and pointless.

Instead, truncate tab data after 4096 bytes before sanitizing.

Test Plan: Adjusted limit to 256 bytes, saw long queries get truncated reasonably.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T8597

Differential Revision: https://secure.phabricator.com/D13347
2015-06-18 13:05:32 -07:00
..
application Move DarkConsole to an application 2014-10-13 11:17:09 -07:00
controller Use phutil_json_decode instead of json_decode 2015-05-05 20:48:55 +10:00
core Truncate large strings in DarkConsole 2015-06-18 13:05:32 -07:00
plugin Extend from Phobject 2015-06-15 18:02:27 +10:00