From 5e61b3c7c8806c8eb0d97c28b1ee66df9bd9bd6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 24 Mar 2003 15:48:40 +0000 Subject: [PATCH] Display correctly table names that contain html entities. --- ChangeLog | 2 ++ db_details_structure.php3 | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3f58ff1fc..034645fe1 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,8 @@ $Source$ * db_details_structure.php3, mult_submits.inc.php3, tbl_alter.php3, tbl_properties_structure.php3: Show result of CHECK/OPTIMIZE/REPAIR queries for multiple tables. + * db_details_structure.php3: Display correctly table names that contain + html entities. 2003-03-23 Marc Delisle * libraries/sqlparser.lib.php3, libraries/config_import.lib.php3, diff --git a/db_details_structure.php3 b/db_details_structure.php3 index 515b0f08b..a17e18e85 100644 --- a/db_details_structure.php3 +++ b/db_details_structure.php3 @@ -127,10 +127,10 @@ else if (PMA_MYSQL_INT_VERSION >= 32303) { $table_name = htmlspecialchars($table); $alias = (!empty($tooltip_aliasname) && isset($tooltip_aliasname[$table])) - ? str_replace('"', '"', $tooltip_aliasname[$table]) + ? htmlspecialchars($tooltip_aliasname[$table]) : htmlspecialchars($sts_data['Name']); $truename = (!empty($tooltip_truename) && isset($tooltip_truename[$table])) - ? str_replace('"', '"', $tooltip_truename[$table]) + ? htmlspecialchars($tooltip_truename[$table]) : htmlspecialchars($sts_data['Name']); // Sets parameters for links