Welcome! Log In Create A New Profile

Advanced

Re: $https variable?

September 28, 2011 07:25AM
Unfortunately, PHP code in many known packages (such as Moodle) sometimes relies on the wrong assumption:

$HTTPS = isset($HTTP_SERVER_VARS['HTTPS']) ? $HTTP_SERVER_VARS['HTTPS'] : 'off';

Because in Apache HTTPS variable is never submitted at all in http mode and coders believe this is enough information to check. So, is there a way to never submit HTTPS=off at all if HTTPS is not present?

Andrejs
Subject Author Posted

$https variable?

Luke Scott September 24, 2011 03:14AM

Re: $https variable?

Andrey N. Oktyabrski September 24, 2011 03:26AM

Re: $https variable?

mike September 24, 2011 03:28AM

Re: $https variable?

locojohn September 28, 2011 07:25AM

Re: $https variable?

António P. P. Almeida October 04, 2011 07:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 77
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready