Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2940286
D25205.1738048921.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
556 B
Referenced Files
None
Subscribers
None
D25205.1738048921.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 28, 07:22 (3 d, 5 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1119620
Default Alt Text
D25205.1738048921.diff (556 B)
Attached To
Mode
D25205: Fix PHP 8.1 "strpos(null)" exception from PhutilCommandString which blocks arc patch
Attached
Detach File
Event Timeline
Log In to Comment