From 8e1d4af2e5aa7d1b43ba3cf64f66c9bc23bd14cf Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Fri, 19 Sep 2008 06:21:09 -0400
Subject: [PATCH] - added 'exp' object support

---
 program/include/rcmail.php |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index e7a0db8..ac328eb 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -728,7 +728,9 @@
       if (!$valid || ($_SERVER['REQUEST_METHOD']!='POST' && $now - $_SESSION['auth_time'] > 300)) {
         $_SESSION['last_auth'] = $_SESSION['auth_time'];
         $_SESSION['auth_time'] = $now;
-        setcookie('sessauth', $this->get_auth_hash(session_id(), $now));
+        $cookie = session_get_cookie_params();
+        setcookie('sessauth', $this->get_auth_hash(session_id(), $now), 0, $cookie['path'],
+                  $cookie['domain'], $_SERVER['HTTPS'] && ($_SERVER['HTTPS']!='off'));
       }
     }
     else {
@@ -895,6 +897,9 @@
     if (!$p['task'] || !in_array($p['task'], rcmail::$main_tasks))
       $p['task'] = $this->task;
 
+    $p['_task'] = $p['task'];
+    unset($p['task']);
+
     $url = './';
     $delm = '?';
     foreach (array_reverse($p) as $par => $val)

--
Gitblit v1.9.1