From aa39839dd094bd5239233cca98cc0f9f092fd2f7 Mon Sep 17 00:00:00 2001 From: stekkel Date: Thu, 18 Sep 2003 19:20:26 +0000 Subject: [PATCH] fix for personal names with "," inside it. This will fix wrong address parsing in case of replyall git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5727 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compose.php b/src/compose.php index dcbe0b63..f3d50088 100644 --- a/src/compose.php +++ b/src/compose.php @@ -128,6 +128,11 @@ function replyAllString($header) { $url_replytoallcc = ''; foreach( $url_replytoall_ar as $email => $personal) { if ($personal) { + // if personal name contains address separator then surround + // the personal name with double quotes. + if (strpos($personal,',') !== false) { + $personal = '"'.$personal.'"'; + } $url_replytoallcc .= ", $personal <$email>"; } else { $url_replytoallcc .= ', '. $email; -- 2.25.1