Skip to content

Commit 9eb8dc3

Browse files
committed
Fix memory leak
1 parent b9bb103 commit 9eb8dc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Plugin/App/Request/StorePathInfoValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function __construct(
2121

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

0 commit comments

Comments
 (0)