From Rabus: if a binary record contains some html special characters, display was not xhtml compliant

This commit is contained in:
Loïc Chapeaux
2002-05-18 13:14:12 +00:00
parent 154e0560aa
commit 729ec930c3
2 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2002-05-18 Alexander M. Turek <rabus@users.sourceforge.net>
* libraries/display_tbl.lib.php3, line 1006: if a binary record contains
some html special characters, display was not xhtml compliant.
2002-05-18 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* libraries/common.lib.php3; libraries/ip_allow_deny.lib.php3:
- exported the "IP-based Allow/Deny" code in a distinct library;

View File

@@ -1003,7 +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]));
$row[$pointer] = htmlspecialchars($row[$pointer]);
}
// loic1: displays all space characters, 4 space
// characters for tabulations and <cr>/<lf>