Skip to content

Commit

Permalink
Import endpoints : replace _ by space
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Jul 15, 2024
1 parent 0179b45 commit cc39b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/ImportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private function checkAuth(Request $request, array $allowedCampaigns, bool $forc
], Response::HTTP_BAD_REQUEST);
}

$this->version = $matchesVersion[1];
$this->version = \str_replace('_', ' ', $matchesVersion[1]);
if (strlen($this->version) < 1) {
return new JsonResponse([
'message' => sprintf(
Expand Down

0 comments on commit cc39b5b

Please sign in to comment.