From 5cc7f2219f3a0268e7bcb6d621b50a97918ea5a0 Mon Sep 17 00:00:00 2001 From: Michael Neves Date: Mon, 25 Jun 2012 17:59:25 +0200 Subject: https check in ipxe --- application/modules/ipxe/controllers/AuthController.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'application/modules/ipxe/controllers/AuthController.php') 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() { -- cgit v1.2.3-55-g7522