浏览代码

fixed comp_in_new handling

stekkel 23 年之前
父节点
当前提交
1650517a7c
共有 1 个文件被更改,包括 2 次插入1 次删除
  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='.