1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-09-20 00:49:11 +02:00

Remove accidental sprintf injection in error reporting

Summary:
STDERR output with `%`s in it could cause:

```
ERROR 2: fprintf(): Too few arguments at [/usr/local/arcanist/src/workflow/ArcanistFeatureWorkflow.php:170]
```

Test Plan: Untested.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D19261
This commit is contained in:
Alex Vandiver 2018-03-26 10:36:04 -07:00
parent dcd7ef66d0
commit bf3d32e34e

View file

@ -167,7 +167,7 @@ EOTEXT
}
echo $stdout;
fprintf(STDERR, $stderr);
fprintf(STDERR, '%s', $stderr);
return $err;
}