Skip to content

Commit

Permalink
Fix dynamic parameter in GET http method
Browse files Browse the repository at this point in the history
  • Loading branch information
nicollassilva committed Jun 11, 2021
1 parent 8b97013 commit 6cad0a7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,11 @@ protected function resolveRouteData(String $route, array $routeParams): void

if (!empty($diff)) {
foreach ($routeParams as $index => $param) {
if (!isset($diff[$index])) return;

if ($this->httpMethod != 'GET') {
$this->params[$param] = rawurldecode($diff[$index]);
if (!isset($diff[$index])) {
continue;
}

$this->data[$param] = rawurldecode($diff[$index]);
$this->params[$param] = rawurldecode($diff[$index]);
}
}

Expand Down

0 comments on commit 6cad0a7

Please sign in to comment.