fixed comp_in_new handling
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 24 May 2002 16:46:21 +0000 (16:46 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 24 May 2002 16:46:21 +0000 (16:46 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2860 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/url_parser.php

index c1dbcf7..de49b1e 100644 (file)
@@ -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='.