if a binary record contains some html tags, display was broken. Thanks to SailorMax

This commit is contained in:
Loïc Chapeaux
2002-05-17 10:48:32 +00:00
parent af7317c461
commit a59ee12d66
2 changed files with 4 additions and 0 deletions

View File

@@ -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<77> Szczepa<70>ski <pauluz at users.sourceforge.net>.
* libraries/display_tbl.lib.php3, line 1006: if a binary record contains
some html tags, display was broken. Thanks to
SailorMax <max at elcor.lv>.
2002-05-16 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* db_details_structure.php3; Documentation.html: coding standards.

View File

@@ -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('<', '&lt;', str_replace('>', '&gt;', $row[$pointer]));
}
// loic1: displays all space characters, 4 space
// characters for tabulations and <cr>/<lf>