in2code-de / powermail

This is the official repository of the TYPO3 extension powermail! Powermail is a well-known, editor-friendly, powerful and easy mailform extension for TYPO3
https://in2code.de
86 stars 174 forks source link

Left angle bracket in input field with sender name breaks mail to sender and receiver #871

Open Patta opened 1 year ago

Patta commented 1 year ago

TYPO3 11.5.25 powermail 10.7.2 composer mode PHP 7.4.33

Left angle bracket in input field with sender name breaks mail to sender and receiver.


Scenario one - simple contact form with one field for sender name:

Form with field of type input and selected option sender_name for this text field. (default Input.html partial from vendor)

Example user input in this field: Peter<

Warning log: Thu, 06 Apr 2023 15:22:10 +0200 [CRITICAL] request="b4c05f3688d57" component="In2code.Powermail.Controller.FormController": Mail could not be sent - ["Email \" <peter@mail.dev\" does not comply with addr-spec of RFC 2822."]


Scenario two - simple contact form with two fields for sender name:

Form with two fields of type input and selected options sender_name for this two text fields. (default Input.html partial from vendor)

Example user input in field one: Peter<

Example user input in field two: Griffin

Warning log: Thu, 06 Apr 2023 15:30:35 +0200 [CRITICAL] request="6de6e0933c2c7" component="In2code.Powermail.Controller.FormController": Mail could not be sent - ["Email \" Griffin <peter@mail.dev\" does not comply with addr-spec of RFC 2822."]

mschwemer commented 11 months ago

Hint: https://de.wikipedia.org/wiki/E-Mail-Adresse part "Anzeigename"

Patta commented 11 months ago

probably a core issue?