fixed comp_in_new handling
[squirrelmail.git] / src / search.php
index a3580a7..1c29fe0 100644 (file)
@@ -182,7 +182,9 @@ if ($mailbox == 'All Folders') {
 }
 
 if (isset($composenew) && $composenew) {
 }
 
 if (isset($composenew) && $composenew) {
-    displayPageHeader($color, $mailbox, 'comp_in_new('.$session.',true);');
+    $comp_uri = "../src/compose.php?mailbox=". urlencode($mailbox).
+               "&session=$composesession&attachedmessages=true&amp";
+    displayPageHeader($color, $mailbox, "comp_in_new(false,'$comp_uri');", false);
 } else {
     displayPageHeader($color, $mailbox);
 }
 } else {
     displayPageHeader($color, $mailbox);
 }