From 2b0a416283909fe6a6dc712e50ec2dc28bacd207 Mon Sep 17 00:00:00 2001 From: tokul Date: Sun, 4 Jan 2004 10:31:08 +0000 Subject: [PATCH] convert message array to string and display it sanitized. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6370 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/mail_fetch/fetch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mail_fetch/fetch.php b/plugins/mail_fetch/fetch.php index b7623d8d..4d50273e 100644 --- a/plugins/mail_fetch/fetch.php +++ b/plugins/mail_fetch/fetch.php @@ -270,10 +270,10 @@ sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION); fputs($imap_stream, $Message); fputs($imap_stream, "\r\n"); sqimap_read_data($imap_stream, "A3$i", false, $response, $message); - // sqimap_retrieve_imap_response provides $response in array $response=(implode('',$response)); + $message=(implode('',$message)); if ($response != 'OK') { - Mail_Fetch_Status(_("Error Appending Message!")." ".$message ); + Mail_Fetch_Status(_("Error Appending Message!")." ".htmlspecialchars($message) ); Mail_Fetch_Status(_("Closing POP")); $pop3->quit(); Mail_Fetch_Status(_("Logging out from IMAP")); -- 2.25.1