summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-07-24 14:21:06 +0200
committerAleksander Machniak <alec@alec.pl>2012-07-24 14:21:06 +0200
commit09e5fc99f8eab6e9ab9c1f7046129ef21f914cb4 (patch)
tree4a5ddf529adaa4c67863d61a2cbde9161332eed3
parent0afe27901189a5416dc696eef32e2bc2e5fe3844 (diff)
Small performance improvement: use cookie 'secure' parameter if enabled
-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);
}