X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=http.php;h=b1f2aece64279389f230b001c66637a15d8e6244;hb=de9d8d4999bf24e255e583bf69bc4d1a530af2df;hp=76c6684e304edd78ac9966b7179f71d8f541f3ee;hpb=900e09b8300463e3dd42e89c21de181520513e95;p=wfpl.git diff --git a/http.php b/http.php index 76c6684..b1f2aec 100644 --- a/http.php +++ b/http.php @@ -8,7 +8,7 @@ # return our best guess at the url used to access this page, without the path or query string function this_url_sans_path() { - if(strtolower($_SERVER['HTTPS']) == 'on' || strtolower($_SERVER['HTTPS']) == 'yes') { + if (isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on' || strtolower($_SERVER['HTTPS']) == 'yes')) { $url = 'https'; $expected_port = 443; } else {