From 397470dda4532a8e0ac8e80afb91124809bd5e29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Fri, 17 Aug 2001 14:26:39 +0000 Subject: [PATCH] Fixed some encoding/decoding bugs --- ChangeLog | 4 ++-- tbl_printview.php3 | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6718de226..341922637 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,8 +11,8 @@ $Source$ * tbl_addfield.php3: removed an unecessary stripslashes call (line 68) and replaced some remaining tabs characters. * tbl_alter.php3; tbl_addfield.php3; tbl_change.php3; tbl_replace.php3; - tbl_properties.php3; tbl_properties.inc.php3: fixed some - encoding/decoding bugs. + tbl_properties.php3; tbl_properties.inc.php3; tbl_printview.php3: fixed + some encoding/decoding bugs. * left.php3; left.js: added a style for the number of tables per database. 2001-08-16 Marc Delisle diff --git a/tbl_printview.php3 b/tbl_printview.php3 index f5093bfd6..84dbe07f1 100755 --- a/tbl_printview.php3 +++ b/tbl_printview.php3 @@ -61,6 +61,8 @@ while ($row = mysql_fetch_array($result)) { $shorttype = substr($type, 0, 3); if ($shorttype == 'set' || $shorttype == 'enu') { $type = eregi_replace(',', ', ', $type); + // Removes automatic MySQL escape format + $type = str_replace('\'\'', '\\\'', $type); $type_nowrap = ''; } else { $type_nowrap = ' nowrap="nowrap"';