From 0b20c7a5ed3c6a9ffe984bb6498c2f76802b7f4c Mon Sep 17 00:00:00 2001 From: epriestley Date: Sat, 19 Feb 2011 13:02:25 -0800 Subject: [PATCH] Emit shielded JSON from Conduit endpoints. Summary: Test Plan: Reviewers: CC: --- .../conduit/controller/api/PhabricatorConduitAPIController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/conduit/controller/api/PhabricatorConduitAPIController.php b/src/applications/conduit/controller/api/PhabricatorConduitAPIController.php index 2c9f81692a..67a56a3d35 100644 --- a/src/applications/conduit/controller/api/PhabricatorConduitAPIController.php +++ b/src/applications/conduit/controller/api/PhabricatorConduitAPIController.php @@ -159,7 +159,7 @@ class PhabricatorConduitAPIController default: return id(new AphrontFileResponse()) ->setMimeType('application/json') - ->setContent(json_encode($result)); + ->setContent('for(;;);'.json_encode($result)); } }