You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I feel this version still suffer the problem that when the database password contains a semi-colon it is not read correctly...the fix should be somewhere in one of the team boards...
The text was updated successfully, but these errors were encountered:
@emanuele45 your current code does handle passwords with double quotes and semi-colons correctly. However, it damages Windows paths because a double backlash is required and you are only using addcslashes to escape quotes. You have this
foreach ($_POST as $k => $v)
{
if (is_array($v))
foreach ($v as $k2 => $v2)
$_POST[$k][$k2] = addcslashes($v2, '\'');
else
$_POST[$k] = addcslashes($v, '\'');
}
And you need
foreach ($_POST as $k => $v)
{
if (is_array($v))
foreach ($v as $k2 => $v2)
$_POST[$k][$k2] = addcslashes($v2, '\'\\');
else
$_POST[$k] = addcslashes($v, '\'\\');
}
I feel this version still suffer the problem that when the database password contains a semi-colon it is not read correctly...the fix should be somewhere in one of the team boards...
The text was updated successfully, but these errors were encountered: