diff --git a/ChangeLog b/ChangeLog index bf548d58f..2931543ad 100755 --- a/ChangeLog +++ b/ChangeLog @@ -30,10 +30,11 @@ $Source$ * tbl_copy.php3; tbl_properties.php3: re-enabled the ability to copy a table to another database (bug #456434). Need to be tested with MySQL < 3.23 releases. - * lib.inc.php3, lines 1154-1170: added an option to display the whole value - of a text field in a javascript alert box thanks to "Opi" . * lang/english.inc.php3: re-sorted and fixed some typos. * left.php3: fixed a js error with NS. + * lib.inc.php3; tbl_properties.php3; tbl.dump.php3: added the "escaped by" + option for exporting CSV files so default values for importing/exporting + dumps are the same. 2001-08-28 Loïc Chapeaux * lang/galician.inc.php3, select_lang.inc.php3: new Galician lang thanks to diff --git a/lib.inc.php3 b/lib.inc.php3 index 1495c45a0..80d3008de 100755 --- a/lib.inc.php3 +++ b/lib.inc.php3 @@ -1152,20 +1152,11 @@ var errorMsg2 = '[BLOB]' . "\n"; } else { if (strlen($row[$i]) > $GLOBALS['cfgLimitChars']) { - // loic1: added a link to display the whole text - // field in a js alert box - $alert = ''; - $tmp = explode("\n", str_replace("\r", ' ', $row[$i])); - for ($j = 0; $j < count($tmp); $j++) { - $alert .= addslashes(str_replace('"', '"', trim($tmp[$j]))) . '\n'; - } - unset($tmp); - $row[$i] = ereg_replace("((\015\012)|(\015)|(\012))+", '
', htmlspecialchars($row[$i])); - $row[$i] = substr($row[$i], 0, $GLOBALS['cfgLimitChars']) - . '... ' - . '[+]'; + $row[$i] = substr($row[$i], 0, $GLOBALS['cfgLimitChars']) . '...'; } + // loic1 : displays / if ($row[$i] != '') { + $row[$i] = ereg_replace("((\015\012)|(\015)|(\012))+", '
', htmlspecialchars($row[$i])); echo ' ' . $row[$i] . '' . "\n"; } else { echo '  ' . "\n"; @@ -1607,7 +1598,7 @@ var errorMsg2 = ' 0) { @@ -1663,7 +1663,7 @@ var errorMsg2 = '  
 :
-         -   
          
+         +   
+         +   
        " />