diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-05-27 14:58:04 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-05-27 14:58:04 +0000 |
| commit | 33186e56e3eaa39162a657f5c7a41b55aa7ce414 (patch) | |
| tree | 27db541340032f37dce9c4b9a04c333ef495b1e7 /roundcubemail/program/steps | |
| parent | df0ba7991d16fce09ae11f7d4dd430fa419e760d (diff) | |
Remove cruft from upload response
git-svn-id: https://svn.roundcube.net/trunk@1434 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/mail/upload.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/roundcubemail/program/steps/mail/upload.inc b/roundcubemail/program/steps/mail/upload.inc index aed0a79f8..cb589ba52 100644 --- a/roundcubemail/program/steps/mail/upload.inc +++ b/roundcubemail/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'])) { |
