Minor update to quote who code.
authorthomppj <thomppj@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 8 Sep 2001 03:20:12 +0000 (03:20 +0000)
committerthomppj <thomppj@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 8 Sep 2001 03:20:12 +0000 (03:20 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1497 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index 91fe35e..af429d4 100644 (file)
              $bodyTop .= "\n";
              $body = $bodyTop . $body;
          } else if ($reply_id) {
-             $bodyTop = '<quote who="';
-             $bodyTop .= trim(substr($orig_header->from,0,strpos($orig_header->from,'<')));
-             $bodyTop .= "\">\n\n";
-             $body = $bodyTop . $body;
+             $orig_from = $orig_header->from;
+             $orig_from = trim(substr($orig_from,0,strpos($orig_from,'<')));
+             $orig_from = str_replace('"','',$orig_from);
+             $orig_from = str_replace("'",'',$orig_from);
+             $body = "<quote who=\"$orig_from\">\n\n$body";
          }
          
          return;