Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit bdfabcc

Browse files
authored
Merge pull request cdaguerre#53 from mriffault/hotfix/50-json-decode-data
Fix cdaguerre#50 - Json decode data from webhook callback.
2 parents 2a47b9e + 7924681 commit bdfabcc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Trello/Service.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ public function handleWebhook(Request $request = null)
9191
{
9292
if (!$request) {
9393
$request = Request::createFromGlobals();
94+
$data = json_decode($request->getContent(), true);
95+
$request->request->replace($data);
9496
}
9597

9698
if (!$this->isTrelloWebhook($request) || !$action = $request->get('action')) {

0 commit comments

Comments
 (0)