SSL detection is faulty
hass - May 9, 2007 - 21:18
| Project: | Google Analytics |
| Version: | 5.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
The current SSL detection isn't working on IIS, while IIS have $_SERVER['HTTPS'] = "off" set if traffic is non-SSL. This small change fixes the bug:
// Are we on a secure page?
if($_SERVER['HTTPS'] == "on") {
$prefix = 's://ssl';
}
#1
#2
Committed recommended SSL detection routine to CVS. Let me know how this goes for IIS, and Apache, i've not got a 5.x HTTPS site to test on.
#3