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