onokazu
onoka****@users*****
2006年 8月 1日 (火) 11:55:25 JST
Index: xoops2jp/html/install/class/settingmanager.php diff -u xoops2jp/html/install/class/settingmanager.php:1.3 xoops2jp/html/install/class/settingmanager.php:1.4 --- xoops2jp/html/install/class/settingmanager.php:1.3 Thu Jul 27 09:17:17 2006 +++ xoops2jp/html/install/class/settingmanager.php Tue Aug 1 11:55:25 2006 @@ -29,7 +29,7 @@ * setting manager for XOOPS installer * * @author Haruki Setoyama <haruk****@plane*****> -* @version $Id: settingmanager.php,v 1.3 2006/07/27 00:17:17 onokazu Exp $ +* @version $Id: settingmanager.php,v 1.4 2006/08/01 02:55:25 onokazu Exp $ * @access public **/ class setting_manager { @@ -72,7 +72,7 @@ if ( substr($filepath, -1) == "/" ) { $filepath = substr($filepath, 0, -1); } - $protocol = $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://'; + $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://'; $this->xoops_url = (!empty($filepath)) ? $protocol.$_SERVER['HTTP_HOST']."/".$filepath : $protocol.$_SERVER['HTTP_HOST']; } }