소스 검색

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( eregi($Email_RegExp_Match, $body, $regs) ) {
         if ($compose_new_win == '1') {
         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 {
         else {
             $body = str_replace($regs[0],  '<a href="../src/compose.php?send_to='.
             $body = str_replace($regs[0],  '<a href="../src/compose.php?send_to='.