Browse Source

* Fixed problem for forwarding files too.

Tyler Akins 24 years ago
parent
commit
7a92d72453
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/compose.php

+ 2 - 0
src/compose.php

@@ -172,6 +172,8 @@
                   $filename = "untitled-".$message->header->entity_id;
       
               $localfilename = GenerateRandomString(32, '', 7);
+	      while (isset($attachments[$localfilename]))
+	          $localfilename = GenerateRandomString(32, '', 7);
       
               // Write File Info
               $fp = fopen ($attachment_dir.$localfilename.".info", "w");