diff options
| author | Nick Palmer <nick@sluggardy.net> | 2007-10-01 18:57:58 +0000 |
|---|---|---|
| committer | Nick Palmer <nick@sluggardy.net> | 2007-10-01 18:57:58 +0000 |
| commit | 4dc0fa524bce54e024879d25f6d2d76b305fd295 (patch) | |
| tree | 6b3f96b52156a2672057221bdf17cfef3ab91116 /install_welcome.php | |
| parent | acfe39990acc7ca51152c50b29cd6921194faa85 (diff) | |
| download | install-4dc0fa524bce54e024879d25f6d2d76b305fd295.tar.gz install-4dc0fa524bce54e024879d25f6d2d76b305fd295.tar.bz2 install-4dc0fa524bce54e024879d25f6d2d76b305fd295.zip | |
Fix places in installer that prevent a secure install.
Diffstat (limited to 'install_welcome.php')
| -rw-r--r-- | install_welcome.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/install_welcome.php b/install_welcome.php index a482cde..4e36436 100644 --- a/install_welcome.php +++ b/install_welcome.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_install/install_welcome.php,v 1.5 2007/06/14 06:55:13 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_install/install_welcome.php,v 1.6 2007/10/01 18:57:58 nickpalmer Exp $ * @package install * @subpackage functions */ @@ -11,7 +11,7 @@ // assign next step in installation process if( !empty( $_REQUEST['install'] ) ) { - header( 'Location: http://'.$_SERVER['HTTP_HOST'].INSTALL_PKG_URL.'install.php?step='.( $step + 1 ) ); + header( 'Location: http'.(!empty($_SERVER['HTTPS'])?'s':'').'://'.$_SERVER['HTTP_HOST'].INSTALL_PKG_URL.'install.php?step='.( $step + 1 ) ); die; } $gBitSmarty->assign( 'next_step',$step ); |
