Emit shielded JSON from Conduit endpoints.
Summary: Test Plan: Reviewers: CC:
This commit is contained in:
@@ -159,7 +159,7 @@ class PhabricatorConduitAPIController
|
||||
default:
|
||||
return id(new AphrontFileResponse())
|
||||
->setMimeType('application/json')
|
||||
->setContent(json_encode($result));
|
||||
->setContent('for(;;);'.json_encode($result));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user