Page MenuHomePhorge

D25205.1738414406.diff
No OneTemporary

D25205.1738414406.diff

diff --git a/src/xsprintf/PhutilCommandString.php b/src/xsprintf/PhutilCommandString.php
--- a/src/xsprintf/PhutilCommandString.php
+++ b/src/xsprintf/PhutilCommandString.php
@@ -56,6 +56,13 @@
}
}
+ // Be generous about what we accept
+ // but normalize to a value that makes sense for a command line
+ // premising that CLIs only accept strings since that is how computers work
+ if ($value === null) {
+ $value = '';
+ }
+
switch ($mode) {
case self::MODE_LINUX:
return self::escapeLinux($value);

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 1, 12:53 (21 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1119620
Default Alt Text
D25205.1738414406.diff (556 B)

Event Timeline