From 130079042d7abc2d761a097883656bb342aca459 Mon Sep 17 00:00:00 2001 From: Jason Munro Date: Tue, 20 Oct 2020 14:57:55 -0500 Subject: [PATCH] slightly improved address label cleanup --- modules/core/message_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/message_functions.php b/modules/core/message_functions.php index d49caf758..e9c38a0ab 100644 --- a/modules/core/message_functions.php +++ b/modules/core/message_functions.php @@ -523,7 +523,7 @@ function addr_parse($str) { else { $comment = ''; } - return array('email' => $email, 'label' => trim($label, ' \'"'), 'comment' => $comment); + return array('email' => $email, 'label' => preg_replace('/[\pZ\pC]+/u', ' ', trim($label, ' \'"')), 'comment' => $comment); }} /**