Some servers do not return 'on' for HTTPS in the $_SERVER array. You suggested we could just add a new case to the current condition, for it to also check if it is 1 instead of 'on'..
I thought also maybe we could look at the request url protocol to determine if the request is via ssl.
Here is your code snippet from the mailing list.
return (
(isset($pathArrayHTTPS?) && (strtolower($pathArrayHTTPS?)
== 'on'
strtolower($pathArrayHTTPS?) == 1))
(isset($pathArrayHTTP_X_FORWARDED_PROTO?) &&
strtolower($pathArrayHTTP_X_FORWARDED_PROTO?) == 'https')
);
Change History
Download in other formats:

Since 1998, Sensio Labs has been promoting the Open-Source software
movement by providing quality web application development, training,
consulting. Sensio Labs also supports several large
Open-Source projects.
|