|
From: James A. <th...@us...> - 2001-11-01 10:42:09
|
Update of /cvsroot/phpbb/phpBB2 In directory usw-pr-cvs1:/tmp/cvs-serv23493 Modified Files: install.php Log Message: 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 Index: install.php =================================================================== RCS file: /cvsroot/phpbb/phpBB2/install.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** install.php 2001/10/18 14:56:40 1.9 --- install.php 2001/11/01 10:42:06 1.10 *************** *** 253,260 **** // Here we'll actually send the file... // ! if ( get_magic_quotes_gpc() ) ! { ! $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"); --- 253,262 ---- // Here we'll actually send the file... // ! // 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"); |