1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-03 03:11:01 +01:00

Add slug check around project.query conduit call

Summary: Fixes T6252

Test Plan: Test project query from conduit app, see no errors in log.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T6252

Differential Revision: https://secure.phabricator.com/D10655
This commit is contained in:
Chad Little 2014-10-07 15:05:57 -07:00
parent 8aa047766d
commit 03ddb4a0fc

View file

@ -96,6 +96,7 @@ final class ProjectQueryConduitAPIMethod extends ProjectConduitAPIMethod {
// TODO: This is pretty hideous. // TODO: This is pretty hideous.
$slug_map = array(); $slug_map = array();
if ($slugs) {
foreach ($slugs as $slug) { foreach ($slugs as $slug) {
$normal = rtrim(PhabricatorSlug::normalize($slug), '/'); $normal = rtrim(PhabricatorSlug::normalize($slug), '/');
foreach ($projects as $project) { foreach ($projects as $project) {
@ -104,6 +105,7 @@ final class ProjectQueryConduitAPIMethod extends ProjectConduitAPIMethod {
} }
} }
} }
}
$result = array( $result = array(
'data' => $projects, 'data' => $projects,