Skip to content

Commit c2f173d

Browse files
author
Maksym Aposov
committed
MAGETWO-41964: Log created on random requests - leads to DoS attack
1 parent bbc085b commit c2f173d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Store/Model/StoreRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function get($code)
5757
$store = $this->storeFactory->create();
5858
$store->load($code, 'code');
5959
if ($store->getId() === null) {
60-
throw new NoSuchEntityException();
60+
throw new NoSuchEntityException(__('Requested store is not found'));
6161
}
6262
$this->entities[$code] = $store;
6363
$this->entitiesById[$store->getId()] = $store;
@@ -88,7 +88,7 @@ public function getById($id)
8888
$store = $this->storeFactory->create();
8989
$store->load($id);
9090
if ($store->getId() === null) {
91-
throw new NoSuchEntityException();
91+
throw new NoSuchEntityException(__('Requested store is not found'));
9292
}
9393
$this->entitiesById[$id] = $store;
9494
$this->entities[$store->getCode()] = $store;

0 commit comments

Comments
 (0)