Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
joeledstrom committed Oct 8, 2021
1 parent a1ea6a8 commit 5fb4eba
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions posthook.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,14 @@
echo "bad method";
die();
}
$signature = $_SERVER['HTTP_X_HUB_SIGNATURE'];
$hub_ext_ping = $_SERVER['HTTP_X_HUB_EXT_PING'];
$signature = null;
if (isset($_SERVER['HTTP_X_HUB_SIGNATURE'])) {
$signature = $_SERVER['HTTP_X_HUB_SIGNATURE'];
}
$hub_ext_ping = null;
if (isset($_SERVER['HTTP_X_HUB_EXT_PING'])) {
$hub_ext_ping = $_SERVER['HTTP_X_HUB_EXT_PING'];
}
$content = file_get_contents("php://input");

$verify_signature = isset($ops['verify_signature']) ? $ops['verify_signature'] : 'off';
Expand Down

0 comments on commit 5fb4eba

Please sign in to comment.