com web/master: actually, I need two parts. :/: github-webhook.php

From: Date: Tue, 10 Jun 2014 20:16:44 +0000
Subject: com web/master: actually, I need two parts. :/: github-webhook.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-19226@lists.php.net to get a copy of this message
Commit: 5c92482bbef244778ac69935da9e41b8d48e1bf0 Author: kovacs.ferenc <kovacs.ferenc@ustream.tv> 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]; }

« previous php.webmaster (#19226) next »