# HG changeset patch
# User Dan
# Date 1193157008 14400
# Node ID 8e2fffc5c622b5665ed59e8d20d874daf3005577
# Parent 88d7a7c2743c48d1ea284b93a5485b87a12affdf
Slight HTTPS compatibility improvements
diff -r 88d7a7c2743c -r 8e2fffc5c622 includes/sessions.php
--- a/includes/sessions.php Sun Oct 21 21:26:11 2007 -0400
+++ b/includes/sessions.php Tue Oct 23 12:30:08 2007 -0400
@@ -863,7 +863,7 @@
{
// Stash it in a cookie
// For now, make the cookie last forever, we can change this in 1.1.x
- setcookie( 'sid', $session_key, time()+315360000, scriptPath.'/' );
+ setcookie( 'sid', $session_key, time()+315360000, scriptPath.'/', null, ( isset($_SERVER['HTTPS']) ) );
$_COOKIE['sid'] = $session_key;
}
// $keyhash is stored in the database, this is for compatibility with the older DB structure
diff -r 88d7a7c2743c -r 8e2fffc5c622 includes/template.php
--- a/includes/template.php Sun Oct 21 21:26:11 2007 -0400
+++ b/includes/template.php Tue Oct 23 12:30:08 2007 -0400
@@ -1673,7 +1673,8 @@
$admintitle = ( $session->user_level >= USER_LEVEL_ADMIN ) ? 'title="You may disable this button in the admin panel under General Configuration."' : '';
if(getConfig('sflogo_enabled')=='1')
{
- $ob[] = '';
+ $sflogo_secure = ( isset($_SERVER['HTTPS']) ) ? 'https' : 'http';
+ $ob[] = '';
}
if(getConfig('w3c_v32') =='1') $ob[] = '';
if(getConfig('w3c_v40') =='1') $ob[] = '';