Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14003498
D10655.id25590.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D10655.id25590.diff
View Options
diff --git a/src/applications/project/conduit/ProjectQueryConduitAPIMethod.php b/src/applications/project/conduit/ProjectQueryConduitAPIMethod.php
--- a/src/applications/project/conduit/ProjectQueryConduitAPIMethod.php
+++ b/src/applications/project/conduit/ProjectQueryConduitAPIMethod.php
@@ -24,7 +24,7 @@
return array(
'ids' => 'optional list<int>',
- 'names' => 'optional list<string>',
+ 'names' => 'optional list<string>',
'phids' => 'optional list<phid>',
'slugs' => 'optional list<string>',
'status' => 'optional '.$status_const,
@@ -96,11 +96,13 @@
// TODO: This is pretty hideous.
$slug_map = array();
- foreach ($slugs as $slug) {
- $normal = rtrim(PhabricatorSlug::normalize($slug), '/');
- foreach ($projects as $project) {
- if (in_array($normal, $project['slugs'])) {
- $slug_map[$slug] = $project['phid'];
+ if ($slugs) {
+ foreach ($slugs as $slug) {
+ $normal = rtrim(PhabricatorSlug::normalize($slug), '/');
+ foreach ($projects as $project) {
+ if (in_array($normal, $project['slugs'])) {
+ $slug_map[$slug] = $project['phid'];
+ }
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 27, 6:54 AM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6732140
Default Alt Text
D10655.id25590.diff (1 KB)
Attached To
Mode
D10655: Add slug check around project.query conduit call
Attached
Detach File
Event Timeline
Log In to Comment