summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--program/include/rcube_utils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_utils.php b/program/include/rcube_utils.php
index 7f20dbb1a..dfd2026cc 100644
--- a/program/include/rcube_utils.php
+++ b/program/include/rcube_utils.php
@@ -47,7 +47,7 @@ class rcube_utils
}
$cookie = session_get_cookie_params();
- $secure = self::https_check();
+ $secure = $cookie['secure'] || self::https_check();
setcookie($name, $value, $exp, $cookie['path'], $cookie['domain'], $secure, true);
}