Page MenuHomePhabricator

D8327.id19802.diff
No OneTemporary

D8327.id19802.diff

diff --git a/src/applications/conduit/method/ConduitAPI_conduit_connect_Method.php b/src/applications/conduit/method/ConduitAPI_conduit_connect_Method.php
--- a/src/applications/conduit/method/ConduitAPI_conduit_connect_Method.php
+++ b/src/applications/conduit/method/ConduitAPI_conduit_connect_Method.php
@@ -61,6 +61,9 @@
$client = $request->getValue('client');
$client_version = (int)$request->getValue('clientVersion');
$client_description = (string)$request->getValue('clientDescription');
+ // TODO: This should be character-oriented, not display-oriented.
+ // See T3307.
+ $client_description = phutil_utf8_shorten($client_description, 255);
$username = (string)$request->getValue('user');
// Log the connection, regardless of the outcome of checks below.

File Metadata

Mime Type
text/plain
Expires
Thu, Sep 19, 7:14 PM (4 h, 47 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6621540
Default Alt Text
D8327.id19802.diff (802 B)

Event Timeline