diff --git a/ChangeLog b/ChangeLog index b7f411223..699da6318 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ $Source$ 2001-08-08 Loïc Chapeaux * tbl_replace.php3: fixed some coding style inconcistencies and optimized a bit both the '$set$' switch cases. + * ldi_check.php3: fixed bug #448522 (Insert Data Error on Win32-Server). 2001-08-08 Steve Alberty * tbl_replace.php3: remove warning in a new row if a 'set' field is not diff --git a/ldi_check.php3 b/ldi_check.php3 index 9be026fff..2774f603d 100755 --- a/ldi_check.php3 +++ b/ldi_check.php3 @@ -30,15 +30,14 @@ if (isset($btnLDI) && ($textfile != 'none')) { } // Formats the data posted to this script + $textfile = sql_addslashes($textfile); if (get_magic_quotes_gpc()) { - $textfile = sql_addslashes(stripslashes($textfile)); $field_terminater = sql_addslashes(stripslashes($field_terminater)); $enclosed = sql_addslashes(stripslashes(str_replace('"', '"', $enclosed))); $escaped = sql_addslashes(stripslashes($escaped)); $line_terminator = sql_addslashes(stripslashes($line_terminator)); $column_name = sql_addslashes(stripslashes($column_name)); } else { - $textfile = sql_addslashes($textfile); $field_terminater = sql_addslashes($field_terminater); $enclosed = sql_addslashes(str_replace('"', '"', $enclosed)); $escaped = sql_addslashes($escaped);