Fixed some others slashes bugs

This commit is contained in:
Loïc Chapeaux
2001-08-09 23:36:03 +00:00
parent 6038b9fbae
commit e90436c39d
2 changed files with 12 additions and 8 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-08-10 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* tbl_replace.php3, lines 76, 78, 86, 88, 137, 139, 147, 149: fixed some
others slashes bugs.
2001-08-09 Olivier M<>ller <om@omnis.ch>
* releasing 2.2.0rc4

View File

@@ -73,9 +73,9 @@ if (isset($primary_key) && ($submit_type != $strInsertAsNewRow)) {
}
if (!empty($$f)) {
if (get_magic_quotes_gpc()) {
$val = "'" . implode(',', $$f) . "'";
$val = "'" . str_replace('\\"', '"', implode(',', $$f)) . "'";
} else {
$val = "'" . addslashes(implode(',', $$f)) . "'";
$val = "'" . sql_addslashes(implode(',', $$f)) . "'";
}
} else {
$val = "''";
@@ -83,9 +83,9 @@ if (isset($primary_key) && ($submit_type != $strInsertAsNewRow)) {
break;
default:
if (get_magic_quotes_gpc()) {
$val = "'" . $val . "'";
$val = "'" . str_replace('\\"', '"', $val) . "'";
} else {
$val = "'" . addslashes($val) . "'";
$val = "'" . sql_addslashes($val) . "'";
}
break;
} // end switch
@@ -134,9 +134,9 @@ else {
}
if (!empty($$f)) {
if (get_magic_quotes_gpc()) {
$val = "'" . implode(',', $$f) . "'";
$val = "'" . str_replace('\\"', '"', implode(',', $$f)) . "'";
} else {
$val = "'" . addslashes(implode(',', $$f)) . "'";
$val = "'" . sql_addslashes(implode(',', $$f)) . "'";
}
} else {
$val = "''";
@@ -144,9 +144,9 @@ else {
break;
default:
if (get_magic_quotes_gpc()) {
$val = "'" . $val . "'";
$val = "'" . str_replace('\\"', '"', $val) . "'";
} else {
$val = "'" . addslashes($val) . "'";
$val = "'" . sql_addslashes($val) . "'";
}
break;
} // end switch