diff --git a/src/aphront/response/AphrontAjaxResponse.php b/src/aphront/response/AphrontAjaxResponse.php index 1736c96898..0aab0ffdf2 100644 --- a/src/aphront/response/AphrontAjaxResponse.php +++ b/src/aphront/response/AphrontAjaxResponse.php @@ -67,7 +67,7 @@ final class AphrontAjaxResponse extends AphrontResponse { $this->error); $response_json = $this->encodeJSONForHTTPResponse($object); - return $this->addJSONShield($response_json, $use_javelin_shield = true); + return $this->addJSONShield($response_json); } public function getHeaders() { diff --git a/src/aphront/response/AphrontJSONResponse.php b/src/aphront/response/AphrontJSONResponse.php index 32984bfd13..5e820cc5ed 100644 --- a/src/aphront/response/AphrontJSONResponse.php +++ b/src/aphront/response/AphrontJSONResponse.php @@ -44,7 +44,7 @@ final class AphrontJSONResponse extends AphrontResponse { public function buildResponseString() { $response = $this->encodeJSONForHTTPResponse($this->content); if ($this->shouldAddJSONShield()) { - $response = $this->addJSONShield($response, $use_javelin_shield = false); + $response = $this->addJSONShield($response); } return $response; } diff --git a/src/aphront/response/AphrontResponse.php b/src/aphront/response/AphrontResponse.php index 437fb9df85..824bba2efa 100644 --- a/src/aphront/response/AphrontResponse.php +++ b/src/aphront/response/AphrontResponse.php @@ -85,7 +85,7 @@ abstract class AphrontResponse { return $response; } - protected function addJSONShield($json_response, $use_javelin_shield) { + protected function addJSONShield($json_response) { // Add a shield to prevent "JSON Hijacking" attacks where an attacker // requests a JSON response using a normal