Some names are not sanitised or quoted in Contact extension #909
-
I think I discovered a little problem in Contact. In lines 90-91 $userName and $sitename are used to build an address as they are. The consequence is (for example) that if a comma is present the string is interpreted as two addresses, if a semicolon is present the string is interpreted as a "group" (but without a final colon it is invalid). I have done several tests and the consequence is that when this occurs in $userName the email is not at all delivered. I see two possible solutions:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Can you provide some example strings to reproduce the bug and to test with? |
Beta Was this translation helpful? Give feedback.
-
Thank you for the bug report and your patience. I updated the contact extension as suggested, special characters will be removed from addresses. Here are some of the technical details. Addresses can be in one of two formats:
Quotes will be removed from the display name in the same way as other special characters. However, if this design turns out to be too restrictive we will be able to add support for quoted strings. With the new software design it's only a matter of which uses cases we want to support and then update the normalisation methods in the core. Should be fixed now, please try it out. |
Beta Was this translation helpful? Give feedback.
Thank you for the bug report and your patience. I updated the contact extension as suggested, special characters will be removed from addresses. Here are some of the technical details. Addresses can be in one of two formats:
abc@example.com
orBear Björn <abc@example.com>
, without or with display name.Bear, Björn <abc@example.com>
becomes normalised toBear Björn <abc@eexample.com>
Björn (Support) <abc@example.com>
becomes normalised toBjörn Support <abc@example.com>
"Be, Ba, Bu Björn" <abc@example.com>
becomes normalised toBe Ba Bu Björn <abc@example.com>
Quotes will be removed from the display name in the same way as other special characters. However, if this design turns out to be…