Hi,

I would like to propose a modification of "iniset.php" to eliminate possible "Undefined index: HTTPS" notices in the error log.

The existence of $_SERVER['HTTPS'] should be tested before any attempt to retrieve its value. We currently use the following solution:

isset($_SERVER['HTTPS']) ? ini_set('session.cookie_secure', ($_SERVER['HTTPS'] && ($_SERVER['HTTPS'] != 'off')))
                        : ini_set('session.cookie_secure', 0);

The proposed modification is attached as a patch file.

Regards,
Jonas Nasholm
Bitfuse Network




--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
 http://detached.gigo.com/rc/j3/EflQHdK2/program_include_inis.patch
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---

_______________________________________________
List info: http://lists.roundcube.net/dev/

Reply via email to