From 371b2853894e0fc9c9ffb54e0d203a436a569958 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 03ace9b76..03a069a10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,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 8c663cd6a..dae4b5a33 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 5f5ce0d89..11d789538 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -3413,7 +3413,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();