if a field value contains the "end of record" sequence, enclosed it in dump exportation

This commit is contained in:
Loïc Chapeaux
2001-08-22 00:21:11 +00:00
parent d4f677fcb6
commit 239d13d1b3
3 changed files with 17 additions and 15 deletions

View File

@@ -1675,7 +1675,7 @@ var errorMsg2 = '<?php echo(str_replace('\'', '\\\'', $GLOBALS['strNotValidNumbe
$row[$j] = ereg_replace("\015(\012)?", "\012", $row[$j]);
$re_test = "$enc_by|$sep|\012";
} else {
$re_test = "[$enc_by$sep]";
$re_test = "[$enc_by$sep]|" . $GLOBALS['add_character'];
}
if (ereg($re_test, $row[$j])) {
$row[$j] = $enc_by . str_replace($enc_by, $enc_by . $enc_by, $row[$j]) . $enc_by;