diff options
Diffstat (limited to 'phpBB/install.php')
-rw-r--r-- | phpBB/install.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/phpBB/install.php b/phpBB/install.php index 08076d00cf..da5df793b5 100644 --- a/phpBB/install.php +++ b/phpBB/install.php @@ -252,10 +252,12 @@ else if( !empty($HTTP_POST_VARS['ftp_file']) ) // // Here we'll actually send the file... // - if ( get_magic_quotes_gpc() ) - { - $HTTP_POST_VARS['config_data'] = stripslashes($HTTP_POST_VARS['config_data']); - } + // We need to stripslashes no matter what the setting of magic_quotes_gpc is + // because we add slahes at the top if its off, and they are added automaticlly + // if it is on. + // + $HTTP_POST_VARS['config_data'] = stripslashes($HTTP_POST_VARS['config_data']); + $conn_id = ftp_connect('localhost'); $login_result = ftp_login($conn_id, "$ftp_user", "$ftp_pass"); if( (!$conn_id) || (!$login_result) ) |