We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 22a0cf62 authored by Craig Andrews's avatar Craig Andrews

Set cookies with "secure" flag on SSL sites. Improves security.

parent b3cd558f
...@@ -326,7 +326,8 @@ function common_set_cookie($key, $value, $expiration=0) ...@@ -326,7 +326,8 @@ function common_set_cookie($key, $value, $expiration=0)
$value, $value,
$expiration, $expiration,
$cookiepath, $cookiepath,
$server); $server,
common_config('site', 'ssl')=='always');
} }
define('REMEMBERME', 'rememberme'); define('REMEMBERME', 'rememberme');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment