diff --git a/ChangeLog b/ChangeLog index 61d4a80a1..be469e6d1 100755 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,11 @@ $Id$ $Source$ +2001-10-26 Loïc Chapeaux + * tbl_change.php3, lines 198-205: fixed a crash with binary "characters". + Bug was reported by Joshua Nye to the + phpMyAdmin-devel mailing-list. + 2001-10-25 Loïc Chapeaux * user_details.php3, line 1172: fixed bug #474685 (table not found editing user) thanks to Alister Bulman . diff --git a/tbl_change.php3 b/tbl_change.php3 index a06f4966b..6f016ef8a 100755 --- a/tbl_change.php3 +++ b/tbl_change.php3 @@ -195,6 +195,14 @@ for ($i = 0; $i < $fields_cnt; $i++) { // The function column if (isset($row) && isset($row[$field])) { + // loic1: special binary "characters" + if ($is_binary || $is_blob) { + $row[$field] = str_replace("\x00", '\0', $row[$field]); + $row[$field] = str_replace("\x08", '\b', $row[$field]); + $row[$field] = str_replace("\x0a", '\n', $row[$field]); + $row[$field] = str_replace("\x0d", '\r', $row[$field]); + $row[$field] = str_replace("\x1a", '\Z', $row[$field]); + } // end if $special_chars = htmlspecialchars($row[$field]); $data = $row[$field]; $backup_field = '';