Fixed little bug that would leave slashes in the config file if magic_quotes_gpc was off

See this topic for more info: http://area51.phpbb.com/phpBB2/viewtopic.php?p=9797#9797


git-svn-id: file:///svn/phpbb/trunk@1252 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
James Atkinson 2001-11-01 10:42:06 +00:00
parent 5cce2b35f7
commit bd54224f2a

View file

@ -252,10 +252,12 @@ else if( !empty($HTTP_POST_VARS['ftp_file']) )
//
// Here we'll actually send the file...
//
if ( get_magic_quotes_gpc() )
{
// 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) )