From 46beee9f7b85b741b3920624bcf342d7ccb4a5e5 Mon Sep 17 00:00:00 2001 From: stekkel Date: Wed, 31 Jul 2002 23:17:13 +0000 Subject: [PATCH] clean up the stored serialized attachment var in the user.pref file. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3217 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/smtp.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/smtp.php b/functions/smtp.php index f04200a8..9bcda6fc 100644 --- a/functions/smtp.php +++ b/functions/smtp.php @@ -189,7 +189,7 @@ function attachFiles ($fp, $session, $rn="\r\n") { /* Delete files that are uploaded for attaching */ function deleteAttachments($session) { - global $username, $attachments, $attachment_dir; + global $username, $attachments, $attachment_dir, $data_dir; $hashed_attachment_dir = getHashedDir($username, $attachment_dir); $rem_attachments = array(); @@ -204,6 +204,7 @@ function deleteAttachments($session) { } } $attachments = $rem_attachments; + setPref($data_dir, $username, 'attachments', serialize($attachments)); } /* Return a nice MIME-boundary -- 2.25.1