Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 committed Mar 18, 2024
1 parent b9bb103 commit 9eb8dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugin/App/Request/StorePathInfoValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct(

public function beforeGetValidStoreCode(Subject $subject, Http $request, string $pathInfo = ''): array
{
if ($this->config->isEnabled()) {
if ($pathInfo !== '' && $this->config->isEnabled()) {
$uri = $request->getUriString();
/** @var Store $store */
foreach ($this->storeRepository->getList() as $store) {
Expand Down

0 comments on commit 9eb8dc3

Please sign in to comment.