diff --git a/View/JsonpHandler.php b/View/JsonpHandler.php index cae98d508..9f219838a 100644 --- a/View/JsonpHandler.php +++ b/View/JsonpHandler.php @@ -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'); }