@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Apply phutil_utf8ize() to stderr output from VCS commands prior to logging

Summary: Ref T10228. Commands like `git-http-backend` can emit errors with raw bytes in the output. Sanitize these if present so we can log them in JSON format.

Test Plan: Edited this into production. >_> sneaky sneaky <_<

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10228

Differential Revision: https://secure.phabricator.com/D15144

+4 -1
+4 -1
src/applications/diffusion/controller/DiffusionServeController.php
··· 466 466 if ($err) { 467 467 return new PhabricatorVCSResponse( 468 468 500, 469 - pht('Error %d: %s', $err, $stderr)); 469 + pht( 470 + 'Error %d: %s', 471 + $err, 472 + phutil_utf8ize($stderr))); 470 473 } 471 474 472 475 return id(new DiffusionGitResponse())->setGitData($stdout);