From 479ad3b8fbb9383e475623919f4a32a9eef8a4e0 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 15 Dec 2023 19:12:29 +0100 Subject: [PATCH] Fix bug where trailing non-ascii characters in email addresses could have been removed in recipient input (#9257) --- CHANGELOG.md | 1 + skins/elastic/README.md | 3 +-- skins/elastic/ui.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 194612307b..ed764d40c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ - Fix saving other encryption settings besides enigma's (#9240) - Fix unneeded php command use in installto.sh and deluser.sh scripts (#9237) - Fix TinyMCE localization installation (#9266) +- Fix bug where trailing non-ascii characters in email addresses could have been removed in recipient input (#9257) ## Release 1.6.5 diff --git a/skins/elastic/README.md b/skins/elastic/README.md index 8c663cd6a0..dae4b5a33c 100644 --- a/skins/elastic/README.md +++ b/skins/elastic/README.md @@ -48,8 +48,7 @@ or after installing it on the destination system. FOR DEVELOPERS -------------- -- Supported browsers: IE11+, Edge, Last 2 versions for Chrome/Firefox/Safari, - Android Browser 5+, iOS Safari 9+. +- Supported browsers: Last 2 versions of Edge/Chrome/Firefox/Safari. - Skin color palette changes and other css modifications can be done via _styles.less and _variables.less files. Where you can overwrite all diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index 0b0bc5c6bf..633256e240 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -3497,7 +3497,7 @@ function rcube_elastic_ui() recipients.push({ name: '', email: email.replace(/(^<|>$)/g, '') // trim < and > characters - .replace(/[^a-z]$/gi, '') // remove trailing comma or any non-letter character at the end (#7899) + .replace(/[^\p{L}]$/giu, '') // remove trailing comma or any non-letter character at the end (#7899, #9257) }); str = str.replace(email, '').trim();