Don't destroy session on ics feed download (#3427)
This commit is contained in:
parent
7d25c340aa
commit
a7105a4f0c
1 changed files with 4 additions and 1 deletions
|
@ -1495,6 +1495,8 @@ class calendar extends rcube_plugin
|
|||
*/
|
||||
function ical_feed_export()
|
||||
{
|
||||
$session_exists = !empty($_SESSION['user_id']);
|
||||
|
||||
// process HTTP auth info
|
||||
if (!empty($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) {
|
||||
$_POST['_user'] = $_SERVER['PHP_AUTH_USER']; // used for rcmail::autoselect_host()
|
||||
|
@ -1539,6 +1541,7 @@ class calendar extends rcube_plugin
|
|||
}
|
||||
|
||||
// don't save session data
|
||||
if (!$session_exists)
|
||||
session_destroy();
|
||||
exit;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue