Issue 36: $_SERVER['HTTPS']=='off' on IIS
Status:  Invalid
Owner: ----
Closed:  Apr 2011
Reported by s...@pay2name.com, Apr 19, 2011
Hi,
I'm testing lightopenid on PHP as FastCGI on Microsoft IIS 5.1 setup.
In this environment I have $_SERVER['HTTPS']=='off'.

To make LightOpenId working I've modified first line in constructor:

    function __construct()
    {
        $this->trustRoot = ((!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS']!='off')) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'];
...

I'm not sure if IIS is popular, but maybe one additional condition could be added to support this platform...

Best regards,
Seba.
Apr 19, 2011
Project Member #1 mewp...@gmail.com
Download the version from gitorious, as it already contains the fix.

In case you are wondering how to do it, there's the url: https://gitorious.org/lightopenid/lightopenid/archive-tarball/master

Thanks for reporting it anyway.
Status: Invalid