From a59ee12d668386332f2d8598af65eca19e2e4d7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Fri, 17 May 2002 10:48:32 +0000 Subject: [PATCH] if a binary record contains some html tags, display was broken. Thanks to SailorMax --- ChangeLog | 3 +++ libraries/display_tbl.lib.php3 | 1 + 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index b5e4a2345..3c1ffc7ac 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,9 @@ $Source$ * libraries/build_dump.php3, lines 70-75: fixed bug #551682 - PMA ignores case of table names under winwin, thanks to Paweł Szczepański . + * libraries/display_tbl.lib.php3, line 1006: if a binary record contains + some html tags, display was broken. Thanks to + SailorMax . 2002-05-16 Loďc Chapeaux * db_details_structure.php3; Documentation.html: coding standards. diff --git a/libraries/display_tbl.lib.php3 b/libraries/display_tbl.lib.php3 index 2dcc5c53a..15dbfa438 100644 --- a/libraries/display_tbl.lib.php3 +++ b/libraries/display_tbl.lib.php3 @@ -1003,6 +1003,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){ $row[$pointer] = str_replace("\x0a", '\n', $row[$pointer]); $row[$pointer] = str_replace("\x0d", '\r', $row[$pointer]); $row[$pointer] = str_replace("\x1a", '\Z', $row[$pointer]); + $row[$pointer] = str_replace('<', '<', str_replace('>', '>', $row[$pointer])); } // loic1: displays all space characters, 4 space // characters for tabulations and /