Reinstating fix for the "to" addresses. Hopefully won't need them for CC
[squirrelmail.git] / functions / imap_general.php
index 2848b158b3c0281724a89dcfa364a6b27f14dc8b..496e2dd84bc13e314bdebf1cd9341afb330b354f 100755 (executable)
@@ -19,7 +19,7 @@
 
       $read = fgets($imap_stream, 9096);
 
-      if (ereg("^\* [0-9]+ FETCH.*{([0-9]+)}", $read, $regs)) {
+      if (ereg("^\\* [0-9]+ FETCH.*\\{([0-9]+)\\}", $read, $regs)) {
          $size = $regs[1];
       } else {
          $size = 0;
@@ -98,7 +98,7 @@
       global $color, $squirrelmail_language, $HTTP_ACCEPT_LANGUAGE, $onetimepad;
 
       $imap_stream = fsockopen ($imap_server_address, $imap_port,
-         &$error_number, &$error_string, 15);
+         $error_number, $error_string, 15);
       $server_info = fgets ($imap_stream, 1024);
       
       // Decrypt the password