From 729ec930c3aec42b16e8fadbdebfdf1d88e80633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 18 May 2002 13:14:12 +0000 Subject: [PATCH] From Rabus: if a binary record contains some html special characters, display was not xhtml compliant --- ChangeLog | 4 ++++ libraries/display_tbl.lib.php3 | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 11d2b253f..d29c59595 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2002-05-18 Alexander M. Turek + * 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ïc Chapeaux * libraries/common.lib.php3; libraries/ip_allow_deny.lib.php3: - exported the "IP-based Allow/Deny" code in a distinct library; diff --git a/libraries/display_tbl.lib.php3 b/libraries/display_tbl.lib.php3 index 15dbfa438..a8273f28b 100644 --- a/libraries/display_tbl.lib.php3 +++ b/libraries/display_tbl.lib.php3 @@ -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('<', '<', str_replace('>', '>', $row[$pointer])); + $row[$pointer] = htmlspecialchars($row[$pointer]); } // loic1: displays all space characters, 4 space // characters for tabulations and /