mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
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
This commit is contained in:
parent
44e61a2397
commit
dac16264e4
2 changed files with 2 additions and 5 deletions
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue