Ticket #5808: defines.php.diff

File defines.php.diff, 577 bytes (added by Andreas Koester <Andreas.Koester@…>, 17 years ago)
  • defines.php

     
    7676
    7777    define('http_host', isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : $_SERVER['HTTP_HOST']);
    7878
    79     define('root_url', ($_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://' ).http_host.':'.$_SERVER['SERVER_PORT'].root);
     79    define('root_url', ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://' ).http_host.':'.$_SERVER['SERVER_PORT'].root);