We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8f8cba commit 83db16cCopy full SHA for 83db16c
src/CustomerProvider/DefaultCustomerProvider.php
@@ -211,7 +211,7 @@ public function getActiveCustomerByEmail($email)
211
$list = $this->getList();
212
$list->setUnpublished(false);
213
$this->addActiveCondition($list);
214
- $list->addConditionParam('trim(email) like ?', [trim($email)]);
+ $list->addConditionParam('trim(email) like ?', [$list->escapeLike(trim($email))]);
215
216
if ($list->count() > 1) {
217
throw new DuplicateCustomersFoundException(sprintf('multiple active and published customers with email %s found', $email));
0 commit comments