Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   PHP Warning: addslashes() (http://www.bvlist.com/showthread.php?t=12429)

elvira 12th October 2021 20:42

PHP Warning: addslashes()
 
Hello all,

have a error in core.php with addslashes on line 56

PHP Code:

if( !get_magic_quotes_gpc() )
{
    if( 
is_array($HTTP_GET_VARS) )
    {
        while( list(
$k$v) = each($HTTP_GET_VARS) )
        {
            if( 
is_array($HTTP_GET_VARS[$k]) )
            {
                while( list(
$k2$v2) = each($HTTP_GET_VARS[$k]) )
                {
                    
$HTTP_GET_VARS[$k][$k2] = addslashes($v2);
                }
                @
reset($HTTP_GET_VARS[$k]);
            }
            else
            {
                
$HTTP_GET_VARS[$k] = addslashes($v);
            }
        }
        @
reset($HTTP_GET_VARS);
    } 


MicroMonkey 14th October 2021 23:47

I dont use this source, but get_magic_quotes needs removed from your code. Thats the issue

xblade 15th October 2021 16:34

derr, can u read code hes using old tbdev derv so hes using old PHP

MicroMonkey 16th October 2021 05:05

Quote:

Originally Posted by budgie (Post 55827)
derr, can u read code hes using old tbdev derv so hes using old PHP

since you know everything, why didnt you help? Jus wonderin..lol .and maybe you are right. I made an assumption that this person was using a newer version of php and thats what messed up the code for them. I accept that fault

DND 17th October 2021 11:51

where does it says he is using old php software? stop assuming things and just ask the person


All times are GMT +2. The time now is 15:46.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.