Fixed some encoding/decoding bugs

This commit is contained in:
Loïc Chapeaux
2001-08-17 14:21:37 +00:00
parent 8645298a6b
commit 56dd0cb360
6 changed files with 110 additions and 75 deletions

View File

@@ -95,7 +95,7 @@ if (isset($primary_key) && ($submit_type != $strInsertAsNewRow)) {
if (!empty($$f)) {
$val = implode(',', $$f);
if ($is_encoded) {
$val = "'" . sql_addslashes(urldecode(',', $val)) . "'";
$val = "'" . sql_addslashes(urldecode(val)) . "'";
} else if (get_magic_quotes_gpc()) {
$val = "'" . str_replace('\\"', '"', $val) . "'";
} else {
@@ -198,7 +198,7 @@ else {
if (!empty($$f)) {
$val = implode(',', $$f);
if ($is_encoded) {
$val = "'" . sql_addslashes(urldecode(',', $val)) . "'";
$val = "'" . sql_addslashes(urldecode($val)) . "'";
} else if (get_magic_quotes_gpc()) {
$val = "'" . str_replace('\\"', '"', $val) . "'";
} else {