From 7ffc08ce87bdbc761eb9811f8be25a8c9c4e9976 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Tue, 27 May 2008 10:58:04 -0400 Subject: [PATCH] Remove cruft from upload response --- program/steps/mail/upload.inc | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/program/steps/mail/upload.inc b/program/steps/mail/upload.inc index aed0a79..cb589ba 100644 --- a/program/steps/mail/upload.inc +++ b/program/steps/mail/upload.inc @@ -20,10 +20,9 @@ */ -if (!$_SESSION['compose']) - { - exit; - } +if (!$_SESSION['compose']) { + die("Invalid session var!"); +} // use common temp dir for file uploads @@ -34,7 +33,8 @@ $_SESSION['compose']['attachments'] = array(); -$response = ''; +// clear all stored output properties (like scripts and env vars) +$OUTPUT->reset(); if (is_array($_FILES['_attachments']['tmp_name'])) { -- Gitblit v1.9.1