From 090595e1141186141f2900aa1fc188e5f6b800f3 Mon Sep 17 00:00:00 2001 From: fidian Date: Wed, 31 Jan 2001 17:04:11 +0000 Subject: [PATCH] Changed many "Call-time pass-by-reference" errors. Things should be passed correctly. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1004 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_general.php | 2 +- functions/imap_messages.php | 4 ++-- functions/mime.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/functions/imap_general.php b/functions/imap_general.php index 1cdd83a0..496e2dd8 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -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 diff --git a/functions/imap_messages.php b/functions/imap_messages.php index add62e7a..134b8b72 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -157,7 +157,7 @@ ******************************************************************************/ function sqimap_get_message ($imap_stream, $id, $mailbox) { $header = sqimap_get_message_header($imap_stream, $id, $mailbox); - return sqimap_get_message_body($imap_stream, &$header); + return sqimap_get_message_body($imap_stream, $header); } /****************************************************************************** @@ -376,7 +376,7 @@ ******************************************************************************/ function sqimap_get_message_body ($imap_stream, &$header) { $id = $header->id; - return decodeMime($imap_stream, &$header); + return decodeMime($imap_stream, $header); } diff --git a/functions/mime.php b/functions/mime.php index b9d904b3..379bdb27 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -119,7 +119,7 @@ } else { // parse the elements if ($debug_mime) echo "
$structure
"; - $msg = mime_get_element (&$structure, $msg, $ent_id); + $msg = mime_get_element ($structure, $msg, $ent_id); if ($debug_mime) echo "
"; } return $msg; @@ -435,7 +435,7 @@ /** This is the first function called. It decides if this is a multipart message or if it should be handled as a single entity **/ - function decodeMime ($imap_stream, $header) { + function decodeMime ($imap_stream, &$header) { global $username, $key, $imapServerAddress, $imapPort; return mime_structure ($imap_stream, $header); } -- 2.25.1