From dac16264e401247477a328230abe63a142f7e201 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Mon, 12 Oct 2015 12:02:11 -0700 Subject: [PATCH] Update metamta for handleRequest Summary: Updates metamta for handleRequest Test Plan: Unable to test this, but looks safe? Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D14256 --- .../controller/PhabricatorMetaMTAMailgunReceiveController.php | 3 +-- .../PhabricatorMetaMTASendGridReceiveController.php | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/applications/metamta/controller/PhabricatorMetaMTAMailgunReceiveController.php b/src/applications/metamta/controller/PhabricatorMetaMTAMailgunReceiveController.php index 0c353bf543..af5ca34712 100644 --- a/src/applications/metamta/controller/PhabricatorMetaMTAMailgunReceiveController.php +++ b/src/applications/metamta/controller/PhabricatorMetaMTAMailgunReceiveController.php @@ -18,7 +18,7 @@ final class PhabricatorMetaMTAMailgunReceiveController return phutil_hashes_are_identical($sig, $hash); } - public function processRequest() { + public function handleRequest(AphrontRequest $request) { // No CSRF for Mailgun. $unguarded = AphrontWriteGuard::beginScopedUnguardedWrites(); @@ -28,7 +28,6 @@ final class PhabricatorMetaMTAMailgunReceiveController pht('Mail signature is not valid. Check your Mailgun API key.')); } - $request = $this->getRequest(); $user = $request->getUser(); $raw_headers = $request->getStr('headers'); diff --git a/src/applications/metamta/controller/PhabricatorMetaMTASendGridReceiveController.php b/src/applications/metamta/controller/PhabricatorMetaMTASendGridReceiveController.php index 646d6ef2ae..0a5e28fcee 100644 --- a/src/applications/metamta/controller/PhabricatorMetaMTASendGridReceiveController.php +++ b/src/applications/metamta/controller/PhabricatorMetaMTASendGridReceiveController.php @@ -7,12 +7,10 @@ final class PhabricatorMetaMTASendGridReceiveController return false; } - public function processRequest() { + public function handleRequest(AphrontRequest $request) { // No CSRF for SendGrid. $unguarded = AphrontWriteGuard::beginScopedUnguardedWrites(); - - $request = $this->getRequest(); $user = $request->getUser(); $raw_headers = $request->getStr('headers');