diff --git a/functions.php b/functions.php index 2b99659fde4707ee1876b015ca45c6e47b761b34..e35e9bf33dc43384941b1a181f6a4330c8de567b 100644 --- a/functions.php +++ b/functions.php @@ -1,6 +1,7 @@ <?php //include __DIR__. "/baselinker_functions.php"; +if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && 'https' === $_SERVER['HTTP_X_FORWARDED_PROTO'] ) { $_SERVER['HTTPS'] = 'on'; } if ( file_exists( __DIR__. '/functions_add.php' ) ) { include __DIR__ . '/functions_add.php';