diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-07-24 14:21:06 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-07-24 14:21:06 +0200 |
commit | 09e5fc99f8eab6e9ab9c1f7046129ef21f914cb4 (patch) | |
tree | 4a5ddf529adaa4c67863d61a2cbde9161332eed3 /program | |
parent | 0afe27901189a5416dc696eef32e2bc2e5fe3844 (diff) |
Small performance improvement: use cookie 'secure' parameter if enabled
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcube_utils.php | 2 |
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); } |