diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 5181951e7f..0dadb06868 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2007-11-19 Sancho Lerena + + * index.php: Included patch summited by Guru Evi (guruevi) for HTTPS support. THanks evi ! :) + 2007-10-14 Raul Mateos * godmode/modules/manage_network_components.php: Added deleted table row. diff --git a/pandora_console/index.php b/pandora_console/index.php index dfadcd15ed..b658f4526a 100644 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -83,8 +83,7 @@ if ( (isset ($_GET["refr"])) || (isset($_POST["refr"])) ){ $intervalo = entrada_limpia ($_POST["refr"]); if ($intervalo > 0){ // Agent selection filters and refresh - $query = 'http://' . $_SERVER['SERVER_NAME']; // TODO: Check for https - + $query = 'http' . (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == TRUE ? 's': '') . '://' . $_SERVER['SERVER_NAME']; if ($_SERVER['SERVER_PORT'] != 80) $query .= ":" . $_SERVER['SERVER_PORT'];