]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Set cookies with "secure" flag on SSL sites. Improves security.
authorCraig Andrews <candrews@integralblue.com>
Tue, 26 Oct 2010 21:55:09 +0000 (17:55 -0400)
committerCraig Andrews <candrews@integralblue.com>
Tue, 26 Oct 2010 21:55:09 +0000 (17:55 -0400)
lib/util.php

index 6044fdd92ea98b1d3c46d39b74790ab2e234ad6d..d50fa2081432246d91eab3f7c196b5a0c81ea443 100644 (file)
@@ -326,7 +326,8 @@ function common_set_cookie($key, $value, $expiration=0)
                      $value,
                      $expiration,
                      $cookiepath,
-                     $server);
+                     $server,
+                     common_config('site', 'ssl')=='always');
 }
 
 define('REMEMBERME', 'rememberme');