From a5b0d93b46a466f90a9298f54854fd807f21bbfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Wed, 8 Aug 2001 13:11:15 +0000 Subject: [PATCH] fixed bug #448522 (Insert Data Error on Win32-Server) --- ChangeLog | 1 + ldi_check.php3 | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) 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);