Actions
Defect #44787
openInternal error when saving an email address with a long internationalized domain name
Defect #44787:
Internal error when saving an email address with a long internationalized domain name
Resolution:
Affected version:
Description
Saving an email address that has a long internationalized domain name label causes an internal error instead of a validation error. This happens even if the address is shorter than the maximum length of 254 characters.
For example, open the "My account" page, enter the following email address, and save it. Its domain has a label of 224 Cyrillic letters.
marie@абвгдежзийклмнопрстуфхцчшщъыьэюяабвгдежзийклмнопрстуфхцчшщъыьэюяабвгдежзийклмнопрстуфхцчшщъыьэюяабвгдежзийклмнопрстуфхцчшщъыьэюяабвгдежзийклмнопрстуфхцчшщъыьэюяабвгдежзийклмнопрстуфхцчшщъыьэюяабвгдежзийклмнопрстуфхцчшщъыьэюя.example
The attached patch rescues Addressable::IDNA::PunycodeBigOutput, which Addressable::IDNA.to_ascii raises when it converts the domain to Punycode, and leaves the address unconverted so that the validation rejects it.
Files
No data to display
Actions