Skip to content

Commit

Permalink
Sanitize Shop URL on update
Browse files Browse the repository at this point in the history
  • Loading branch information
nsaliu committed Dec 10, 2024
1 parent 21739f6 commit 957ffa1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Registration/RegistrationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function register(RequestInterface $request): ResponseInterface

$this->shopRepository->createShop($shop);
} else {
$shop->setShopUrl($queries['shop-url']);
$shop->setShopUrl($this->sanitizeShopUrl($queries['shop-url']));

$this->eventDispatcher?->dispatch(new BeforeRegistrationStartsEvent($request, $shop));

Expand All @@ -78,7 +78,6 @@ public function register(RequestInterface $request): ResponseInterface
'shop-url' => $shop->getShopUrl(),
]);


$psrFactory = new Psr17Factory();

$data = [
Expand Down

0 comments on commit 957ffa1

Please sign in to comment.