Skip to content

Commit

Permalink
Merge pull request #243 from PrestaShop/versionWithSpaces
Browse files Browse the repository at this point in the history
Import endpoints : replace _ by space
  • Loading branch information
Progi1984 authored Jul 15, 2024
2 parents 0179b45 + cc39b5b commit c6d1fdc
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 c6d1fdc

Please sign in to comment.