mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
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:
parent
5cce2b35f7
commit
bd54224f2a
1 changed files with 6 additions and 4 deletions
|
@ -252,10 +252,12 @@ else if( !empty($HTTP_POST_VARS['ftp_file']) )
|
||||||
//
|
//
|
||||||
// Here we'll actually send the 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
|
||||||
$HTTP_POST_VARS['config_data'] = stripslashes($HTTP_POST_VARS['config_data']);
|
// if it is on.
|
||||||
}
|
//
|
||||||
|
$HTTP_POST_VARS['config_data'] = stripslashes($HTTP_POST_VARS['config_data']);
|
||||||
|
|
||||||
$conn_id = ftp_connect('localhost');
|
$conn_id = ftp_connect('localhost');
|
||||||
$login_result = ftp_login($conn_id, "$ftp_user", "$ftp_pass");
|
$login_result = ftp_login($conn_id, "$ftp_user", "$ftp_pass");
|
||||||
if( (!$conn_id) || (!$login_result) )
|
if( (!$conn_id) || (!$login_result) )
|
||||||
|
|
Loading…
Add table
Reference in a new issue