Skip to content

Commit 3a20c74

Browse files
committed
Updated JSON decoding check in main controller action
1 parent 0984a5d commit 3a20c74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Symfony/src/Codebender/BuilderBundle/Controller/DefaultController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function handleRequestAction($authKey, $version)
5050

5151
$contents = json_decode($request, true);
5252

53-
if ($contents === NULL) {
53+
if ($contents === null || $contents === false) {
5454
return new Response(json_encode(array("success" => false, "message" => "Wrong data.")));
5555
}
5656

0 commit comments

Comments
 (0)