Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15441784
D16525.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
740 B
Referenced Files
None
Subscribers
None
D16525.diff
View Options
Index: src/applications/diffusion/conduit/DiffusionBrowseQueryConduitAPIMethod.php
===================================================================
--- src/applications/diffusion/conduit/DiffusionBrowseQueryConduitAPIMethod.php
+++ src/applications/diffusion/conduit/DiffusionBrowseQueryConduitAPIMethod.php
@@ -105,7 +105,11 @@
$count = 0;
$results = array();
- foreach (explode("\0", rtrim($stdout)) as $line) {
+ $lines = empty($stdout)
+ ? array()
+ : explode("\0", rtrim($stdout));
+
+ foreach ($lines as $line) {
// NOTE: Limit to 5 components so we parse filenames with spaces in them
// correctly.
// NOTE: The output uses a mixture of tabs and one-or-more spaces to
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 27, 7:53 PM (2 w, 18 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7658267
Default Alt Text
D16525.diff (740 B)
Attached To
Mode
D16525: Check for empty output from git ls-tree
Attached
Detach File
Event Timeline
Log In to Comment