mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Fixes issue with HTTPS key not found on non-HTTPS installs
This commit is contained in:
parent
f9572ffa0c
commit
0ea5b090af
|
@ -50,7 +50,7 @@ class SettingsController extends Controller
|
|||
$start_settings['db_error'] = $e->getMessage();
|
||||
}
|
||||
|
||||
$protocol = $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://';
|
||||
$protocol = array_key_exists('HTTPS',$_SERVER) && ( $_SERVER['HTTPS'] == "on") ? 'https://' : 'http://';
|
||||
|
||||
|
||||
$pageURL = $protocol;
|
||||
|
|
Loading…
Reference in a new issue