Skip to content

Commit

Permalink
check for parse error property on request
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Tylkowski committed Jul 12, 2013
1 parent 8d48465 commit 0a201f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/Zend/Json/Server/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,10 @@ protected function _handle()
{
$request = $this->getRequest();

if($request->isParseError()){
return $this->fault('Parse error', Error::ERROR_PARSE);
}

if (!$request->isMethodError() && (null === $request->getMethod())) {
return $this->fault('Invalid Request', Error::ERROR_INVALID_REQUEST);
}
Expand Down

0 comments on commit 0a201f6

Please sign in to comment.