summaryrefslogtreecommitdiffstats
path: root/application/modules/ipxe/controllers/AuthController.php
diff options
context:
space:
mode:
authorMichael Neves2012-06-25 17:59:25 +0200
committerMichael Neves2012-06-25 17:59:25 +0200
commit5cc7f2219f3a0268e7bcb6d621b50a97918ea5a0 (patch)
tree78721b6af53da9c50f9ffb60798fa9e02473e426 /application/modules/ipxe/controllers/AuthController.php
parenthttps check in ipxe (diff)
downloadpbs2-5cc7f2219f3a0268e7bcb6d621b50a97918ea5a0.tar.gz
pbs2-5cc7f2219f3a0268e7bcb6d621b50a97918ea5a0.tar.xz
pbs2-5cc7f2219f3a0268e7bcb6d621b50a97918ea5a0.zip
https check in ipxe
Diffstat (limited to 'application/modules/ipxe/controllers/AuthController.php')
-rw-r--r--application/modules/ipxe/controllers/AuthController.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/application/modules/ipxe/controllers/AuthController.php b/application/modules/ipxe/controllers/AuthController.php
index ba10e5c..5b2de3a 100644
--- a/application/modules/ipxe/controllers/AuthController.php
+++ b/application/modules/ipxe/controllers/AuthController.php
@@ -37,13 +37,12 @@ class Ipxe_AuthController extends Zend_Controller_Action {
}
}
- if(isset($_SERVER['HTTPS']))
+ if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')
{
- if ($_SERVER['HTTPS'] == 'on')
- $this->httpmode = 'https';
- else
- $this->httpmode = 'http';
- }
+ $this->httpmode = 'https';
+ }else{
+ $this->httpmode = 'http';
+ }
}
public function serialAction() {