News for hackers. Stuff that matters.
Re:Create Your Own Posterous with Jekyll, PHP, Mailgun, and S3 by andrewjshults on Monday March 12, 2012 @01:30PM (#3694463)
To validate that the mailgun response actually came from mailgun add this at line 17:

if($_POST['signature'] !== hash_hmac('sha256', $_POST['timestamp'] . $_POST['token'], MAILGUN_KEY)) { exit; }

There are no comments on this comment yet.