We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16e9d88 commit ff824b1Copy full SHA for ff824b1
src/GogsWebhook/Http/Controllers/WebHookController.php
@@ -22,9 +22,9 @@ public function handle(Request $request)
22
if (!$token) {
23
exit('error request');
24
}
25
-
26
- $json = json_decode(file_get_contents('php://input'), true);
27
- exit($json);
+ if ($request->header('X-Gogs-Signature', false) !== $token) {
+ exit('error request');
+ }
28
// if (empty($json['token']) || $json['token'] !== $token) {
29
// exit('error request');
30
// }
0 commit comments