diff options
author | tailor <cygnus@janrain.com> | 2007-04-05 20:05:01 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2007-04-05 20:05:01 +0000 |
commit | 5df2a93692d95c11713bf0b836dee009713326ac (patch) | |
tree | 0396556b41fa1fc4435f70301fb3de0556c30242 /examples/server | |
parent | e2addb2da6a143e5d7e2278a524b3001e16ceb5d (diff) | |
download | php-openid-5df2a93692d95c11713bf0b836dee009713326ac.zip php-openid-5df2a93692d95c11713bf0b836dee009713326ac.tar.gz php-openid-5df2a93692d95c11713bf0b836dee009713326ac.tar.bz2 |
[project @ Update example server to check HTTPS cleanly]
Diffstat (limited to 'examples/server')
-rw-r--r-- | examples/server/lib/session.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/server/lib/session.php b/examples/server/lib/session.php index 76b28bd..201b6ee 100644 --- a/examples/server/lib/session.php +++ b/examples/server/lib/session.php @@ -31,7 +31,7 @@ function getServerURL() $path = $_SERVER['SCRIPT_NAME']; $host = $_SERVER['HTTP_HOST']; $port = $_SERVER['SERVER_PORT']; - $s = $_SERVER['HTTPS'] ? 's' : ''; + $s = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] ? 's' : ''; if (($s && $port == "443") || (!$s && $port == "80")) { $p = ''; } else { |