From 5ee14079b8fa7fb8c6b5e804737f9e785cb7743c Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 24 Mar 2011 02:19:21 +0100 Subject: [PATCH] Avoid double escaping --- adminer/edit.inc.php | 2 +- adminer/include/adminer.inc.php | 4 ++-- adminer/include/functions.inc.php | 2 +- editor/db.inc.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/adminer/edit.inc.php b/adminer/edit.inc.php index c195cd7b..eb4f1beb 100644 --- a/adminer/edit.inc.php +++ b/adminer/edit.inc.php @@ -43,7 +43,7 @@ page_header( ($update ? lang('Edit') : lang('Insert')), $error, array("select" => array($TABLE, $table_name)), - $table_name + $table_name //! two calls of h() ); $row = null; diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index f303b02d..b8d86530 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -80,7 +80,7 @@ username.form['driver'].onchange(); /** Table caption used in navigation and headings * @param array result of SHOW TABLE STATUS - * @return string + * @return string HTML code, "" to ignore table */ function tableName($tableStatus) { return h($tableStatus["Name"]); @@ -89,7 +89,7 @@ username.form['driver'].onchange(); /** Field caption used in select and edit * @param array single field returned from fields() * @param int order of column in select - * @return string + * @return string HTML code, "" to ignore field */ function fieldName($field, $order = 0) { return '' . h($field["field"]) . ''; diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index d571bbc4..8e71ef06 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -757,7 +757,7 @@ function search_tables() { echo "