fixed bug #448522 (Insert Data Error on Win32-Server)

This commit is contained in:
Loïc Chapeaux
2001-08-08 13:11:15 +00:00
parent f100ad8f35
commit a5b0d93b46
2 changed files with 2 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ $Source$
2001-08-08 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* 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 <alberty@neptunlabs.de>
* tbl_replace.php3: remove warning in a new row if a 'set' field is not

View File

@@ -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('&quot;', '"', $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('&quot;', '"', $enclosed));
$escaped = sql_addslashes($escaped);