From 8e1eb0bff85b00876a3b91406471cb693c04a35a Mon Sep 17 00:00:00 2001 From: "M. Clay Johns" Date: Thu, 2 Jul 2015 16:36:18 -0600 Subject: [PATCH] Github raw payload support Github changed how they do their payloads so there is no variable, it is just in the raw --- index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 091e896..f72f16c 100644 --- a/index.php +++ b/index.php @@ -67,7 +67,11 @@ function log_message($message='') log_message("Payload Type: $payload_type"); if ($payload_type == 'github') { - $json_payload = $_POST[$post_var_name]; + if ($github_uses_post_var) { + $json_payload = $_POST[$post_var_name]; + } else { + $json_payload = $HTTP_RAW_POST_DATA; + } } else if($payload_type == 'gitlab') { $json_payload = $HTTP_RAW_POST_DATA;