Skip to content

Commit

Permalink
slightly improved address label cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmunro committed Oct 20, 2020
1 parent 30f559e commit 1300790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/message_functions.php
Expand Up @@ -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);
}}

/**
Expand Down

0 comments on commit 1300790

Please sign in to comment.