[imp] Compose window bug: & in javascript

Syahrul Sazli Shaharir sazli at myjaring.net
Thu Dec 26 17:02:26 PST 2002


See patch. What led me to this: replying / forwarding messages in Mozilla
and Netscape 6 (if compose in new window) failed to quote / include
original text. IE was ok though.

--sazli
cd /open/source; make world
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x06D4113E
Key fingerprint = 0776 CC02 2C3F C0FF 7312  0C3E 0593 AF64 06D4 113E-------------- next part --------------
*** open_compose_win.js.orig	Thu Dec 26 16:20:28 2002
--- open_compose_win.js	Thu Dec 26 16:16:32 2002
***************
*** 4,14 ****
  {
      var url = "<?php echo Horde::url($GLOBALS['registry']->applicationWebPath('%application%/compose.php', 'imp')) ?>";
      if (url.indexOf('?') == -1) glue = '?';
!     else glue = '&amp;';
      var now = new Date();
      var name = "compose_windows_" + now.getTime();
      if (args != "") {
!         url = url + glue + args + "&amp;uniq=" + now.getTime();
      } else {
          url = url + glue + "uniq=" + now.getTime();
      }
--- 4,14 ----
  {
      var url = "<?php echo Horde::url($GLOBALS['registry']->applicationWebPath('%application%/compose.php', 'imp')) ?>";
      if (url.indexOf('?') == -1) glue = '?';
!     else glue = '&';
      var now = new Date();
      var name = "compose_windows_" + now.getTime();
      if (args != "") {
!         url = url + glue + args + "&uniq=" + now.getTime();
      } else {
          url = url + glue + "uniq=" + now.getTime();
      }


More information about the imp mailing list