summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-05-27 14:58:04 +0000
committerthomascube <thomas@roundcube.net>2008-05-27 14:58:04 +0000
commit7ffc08ce87bdbc761eb9811f8be25a8c9c4e9976 (patch)
tree05d838136519c3089e6a99b0c4a6315274280248
parent7e9cecda9804e6137566795d67d6b6b5f95dd343 (diff)
Remove cruft from upload response
-rw-r--r--program/steps/mail/upload.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/program/steps/mail/upload.inc b/program/steps/mail/upload.inc
index aed0a79f8..cb589ba52 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 @@ if (!is_array($_SESSION['compose']['attachments']))
$_SESSION['compose']['attachments'] = array();
-$response = '';
+// clear all stored output properties (like scripts and env vars)
+$OUTPUT->reset();
if (is_array($_FILES['_attachments']['tmp_name']))
{