fixed bug #448522 (Insert Data Error on Win32-Server)
This commit is contained in:
@@ -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
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user