Notice: undefined index HTTPS

Found a bug? Tell us!!
Post Reply
judas_iscariote
Posts: 1
Joined: Fri Jan 26, 2007 9:54 pm
Location: Chile
Contact:

Notice: undefined index HTTPS

Post by judas_iscariote »

Hi:
There is a tiny bug in current svn.

Notice: Undefined index: HTTPS in serendipity_config.inc.php on line 12

notice is shown 'cause error_reporting is set later on the code.

Code: Select all

Index: serendipity_config.inc.php
===================================================================
--- serendipity_config.inc.php  (revisión: 1600)
+++ serendipity_config.inc.php  (copia de trabajo)
@@ -9,7 +9,7 @@
 @define('S9Y_FRAMEWORK', true);

 if (!headers_sent()) {
-    if (strtolower($_SERVER['HTTPS']) == 'on') {
+    if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') {
         @ini_set('session.name', 'SSLSID');
         @ini_set('session.cookie_secure', '1');
     }
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Notice: undefined index HTTPS

Post by garvinhicking »

Hi!

Thanks a lot for telling! I just committed a fix!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply