Skip to content

Commit

Permalink
Validate the GET parameter VALUE
Browse files Browse the repository at this point in the history
Validate the GET parameter VALUE instead of its name
  • Loading branch information
leclercb committed Jan 15, 2014
1 parent 5f8f2f8 commit 3dd7d40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion View/JsonpHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected function getCallback(Request $request)
$callback = $request->query->get($this->callbackParam);
$validator = new \JsonpCallbackValidator();

if (!$validator->validate($this->callbackParam)) {
if (!$validator->validate($callback)) {
throw new BadRequestHttpException('Invalid JSONP callback value');
}

Expand Down

0 comments on commit 3dd7d40

Please sign in to comment.