Page 1 of 1

Notice: undefined index HTTPS

Posted: Fri Jan 26, 2007 9:59 pm
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');
     }

Re: Notice: undefined index HTTPS

Posted: Mon Jan 29, 2007 9:26 am
by garvinhicking
Hi!

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

Regards,
Garvin