[xoops-cvslog 3706] CVS update: xoops2jp/html/install/class

Back to archive index

onokazu onoka****@users*****
2006年 7月 27日 (木) 09:35:47 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.3.2.1
--- xoops2jp/html/install/class/settingmanager.php:1.3	Thu Jul 27 09:17:17 2006
+++ xoops2jp/html/install/class/settingmanager.php	Thu Jul 27 09:35:47 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.3.2.1 2006/07/27 00:35:47 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'];
         }
     }


xoops-cvslog メーリングリストの案内
Back to archive index