zola2 / lightopenid

Automatically exported from code.google.com/p/lightopenid
0 stars 0 forks source link

$_SERVER['HTTPS']=='off' on IIS #36

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by s...@pay2name.com on 19 Apr 2011 at 9:53

GoogleCodeExporter commented 8 years ago
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.

Original comment by mewp...@gmail.com on 19 Apr 2011 at 10:44