From ab589ab31d684ded3b37718a7d06113787802832 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 13 Apr 2020 04:30:52 -0700 Subject: [PATCH] Restore "%d" support to "tsprintf()" Summary: Ref T13490. I recently made "tsprintf()" more strict, but we do sometimes use "%d" and this is reasonable to support. Test Plan: Ran "arc branch". Maniphest Tasks: T13490 Differential Revision: https://secure.phabricator.com/D21098 --- src/xsprintf/tsprintf.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xsprintf/tsprintf.php b/src/xsprintf/tsprintf.php index 8bc1d8b4..aea1e7f4 100644 --- a/src/xsprintf/tsprintf.php +++ b/src/xsprintf/tsprintf.php @@ -48,6 +48,9 @@ function xsprintf_terminal($userdata, &$pattern, &$pos, &$value, &$length) { $value = PhutilTerminalString::escapeStringValue($value, false); $type = 's'; break; + case 'd': + $type = 'd'; + break; default: throw new Exception( pht(