Commit: 5c92482bbef244778ac69935da9e41b8d48e1bf0 Author: kovacs.ferenc <[email protected]> Tue, 10 Jun 2014 22:16:44 +0200 Parents: 5f50ef481f93a8390b4a2e532514fbe6667adacb Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=5c92482bbef244778ac69935da9e41b8d48e1bf0 Log: actually, I need two parts. :/ Changed paths: M github-webhook.php Diff: diff --git a/github-webhook.php b/github-webhook.php index b7fedda..b3cbecc 100644 --- a/github-webhook.php +++ b/github-webhook.php @@ -53,7 +53,7 @@ switch ($_SERVER['HTTP_X_GITHUB_EVENT']) { function verify_signature($requestBody) { if(isset($_SERVER['HTTP_X_HUB_SIGNATURE'])){ - $parts = explode("=", $_SERVER['HTTP_X_HUB_SIGNATURE'], 1); + $parts = explode("=", $_SERVER['HTTP_X_HUB_SIGNATURE'], 2); if (count($parts) == 2) { return hash_hmac($parts[0], $requestBody, getenv('GITHUB_SECRET')) === $parts[1]; } -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
