Skip to content

Commit

Permalink
Add url encode into PathPreProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Lutz committed Dec 3, 2024
1 parent 09a3e3d commit a54d5e9
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,18 @@ public function process(FirstSpiritApiRequestTransfer $apiRequestTransfer): Firs
$path = substr($path, strlen(FirstSpiritApiConfig::ROUTE_PREFIX_FIRST_SPIRIT_API_REST));
}

$apiRequestTransfer->setPath($path);
$apiRequestTransfer->setPath($this->urlEncoding($path));

return $apiRequestTransfer;
}

/**
* @param string $path
*
* @return string
*/
private function urlEncoding(string $path): string
{
return str_replace('%2C', ',', $path);
}
}

0 comments on commit a54d5e9

Please sign in to comment.