Browse Source

fixed comp_in_new handling

stekkel 23 years ago
parent
commit
1650517a7c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      functions/url_parser.php

+ 2 - 1
functions/url_parser.php

@@ -56,7 +56,8 @@ function parseEmail (&$body) {
 
     if( eregi($Email_RegExp_Match, $body, $regs) ) {
         if ($compose_new_win == '1') {
-            $body = str_replace($regs[0],  '<a href="../src/compose.php?send_to='.urlencode($regs[0]).'" target="compose_window" onClick="comp_in_new()">'.$regs[0].'</a>', $body);
+	    $comp_uri = '../src/compose.php?send_to='.urlencode($regs[0]);
+            $body = str_replace($regs[0],  '<a href="javascript:void(0)" onClick="comp_in_new(false,'."'$comp_uri'".')">'.$regs[0].'</a>', $body);
         }
         else {
             $body = str_replace($regs[0],  '<a href="../src/compose.php?send_to='.