Skip to content

Commit 92c478e

Browse files
committed
ACP2E-2503: Mail sender is incorrect when there is colon in sender's name
1 parent 8331a23 commit 92c478e

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Config/Model/Config/Backend/Email

1 file changed

+1
-1
lines changed

app/code/Magento/Config/Model/Config/Backend/Email/Sender.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function beforeSave()
3030
);
3131
}
3232

33-
if (strpos($value, ":")) {
33+
if (str_contains($value, ":")) {
3434
throw new \Magento\Framework\Exception\LocalizedException(
3535
__('The sender name "%1" is not valid. The colon character is not allowed.', $value)
3636
);

0 commit comments

Comments
 (0)