Skip to content

Commit

Permalink
Ensure _METHOD from getParsedBodyParam is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
akrabat committed Nov 18, 2016
1 parent 467dd85 commit c888afc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slim/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public function getMethod()
if ($customMethod) {
$this->method = $this->filterMethod($customMethod);
} elseif ($this->originalMethod === 'POST') {
$overrideMethod = $this->getParsedBodyParam('_METHOD');
$overrideMethod = $this->filterMethod($this->getParsedBodyParam('_METHOD'));
if ($overrideMethod !== null) {
$this->method = $overrideMethod;
}
Expand Down

0 comments on commit c888afc

Please sign in to comment.