From 9ce00a03cf5131edc217891abffd72079e389d99 Mon Sep 17 00:00:00 2001 From: mafoo Date: Wed, 20 Jan 2016 13:44:36 +0000 Subject: [PATCH] values were being assigned rather than compared --- app/devices/device_edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index de92aec84d..613df1fdbd 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -557,8 +557,8 @@ require_once "resources/require.php"; if (!isset($_SERVER['HTTP_PROTOCOL'])) { $_SERVER['HTTP_PROTOCOL'] = 'http'; if (isset($_SERVER['REQUEST_SCHEME'])) { $_SERVER['HTTP_PROTOCOL'] = $_SERVER['REQUEST_SCHEME']; } - if ($_SERVER['HTTPS'] = 'on') { $_SERVER['HTTP_PROTOCOL'] = 'https'; } - if ($_SERVER['SERVER_PORT'] = '443') { $_SERVER['HTTP_PROTOCOL'] = 'https'; } + if ($_SERVER['HTTPS'] == 'on') { $_SERVER['HTTP_PROTOCOL'] = 'https'; } + if ($_SERVER['SERVER_PORT'] == '443') { $_SERVER['HTTP_PROTOCOL'] = 'https'; } } echo " window.location = '".$_SERVER['HTTP_PROTOCOL']."://".$domain_name."/app/provision?mac=".$device_mac_address."&file=' + d + '&content_type=application/octet-stream';\n"; echo " }\n";