Page MenuHomePhorge

D25205.1737647840.diff
No OneTemporary

D25205.1737647840.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
Thu, Jan 23, 15:57 (1 w, 20 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1119620
Default Alt Text
D25205.1737647840.diff (556 B)

Event Timeline