|
From: FlorinCB <ory...@us...> - 2009-01-24 16:42:52
|
Update of /cvsroot/mxbb/mx_phpbb In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv11646 Modified Files: mx_phpbb.php Log Message: fix Index: mx_phpbb.php =================================================================== RCS file: /cvsroot/mxbb/mx_phpbb/mx_phpbb.php,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** mx_phpbb.php 19 Jun 2008 11:01:56 -0000 1.23 --- mx_phpbb.php 24 Jan 2009 16:42:45 -0000 1.24 *************** *** 35,66 **** $HTTP_POST_FILES = $_SESSION['mxbb_post_files']; - // - // addslashes to vars if magic_quotes_gpc is off - // this is a security precaution to prevent someone - // trying to break out of a SQL statement. - // - if( !get_magic_quotes_gpc() ) - { - if( is_array($HTTP_POST_VARS) ) - { - while( list($k, $v) = each($HTTP_POST_VARS) ) - { - if( is_array($HTTP_POST_VARS[$k]) ) - { - while( list($k2, $v2) = each($HTTP_POST_VARS[$k]) ) - { - $HTTP_POST_VARS[$k][$k2] = addslashes($v2); - } - @reset($HTTP_POST_VARS[$k]); - } - else - { - $HTTP_POST_VARS[$k] = addslashes($v); - } - } - @reset($HTTP_POST_VARS); - } - } - $default_lang = ($mx_user->lang['default_lang']) ? $mx_user->lang['default_lang'] : $board_config['default_lang']; --- 35,38 ---- |