diff --git a/libraries/RecentFavoriteTable.class.php b/libraries/RecentFavoriteTable.class.php
index 54041c51a3..9221ba38b6 100644
--- a/libraries/RecentFavoriteTable.class.php
+++ b/libraries/RecentFavoriteTable.class.php
@@ -96,7 +96,7 @@ class PMA_RecentFavoriteTable
/**
* Returns the recent/favorite tables array
*
- * @return array
+ * @return array
*/
public function getTables()
{
@@ -203,36 +203,47 @@ class PMA_RecentFavoriteTable
if ($this->_tableType == 'recent') {
foreach ($this->_tables as $table) {
$html .= '
';
- $html .= '`' . $table['db'] . '`.`' . $table['table'] . '`';
+ $recent_params = array(
+ 'db' => $table['db'],
+ 'table' => $table['table']
+ );
+ $recent_url = 'sql.php'
+ . PMA_URL_getCommon($recent_params);
+ $html .= '`'
+ . htmlspecialchars($table['db']) . '`.`'
+ . htmlspecialchars($table['table']) . '`';
$html .= '';
}
} else {
foreach ($this->_tables as $table) {
$html .= '';
- $html .= ' $table['db'],
- 'ajax_request' => true,
- 'favorite_table' => $table['table'],
- 'remove_favorite' => true);
+ $html .= ' $table['db'],
+ 'ajax_request' => true,
+ 'favorite_table' => $table['table'],
+ 'remove_favorite' => true
+ );
$fav_rm_url = 'db_structure.php'
. PMA_URL_getCommon($fav_params);
$html .= 'href="' . $fav_rm_url
. '" title="' . __("Remove from Favorites")
- . '" data-favtargetn="' . $table['db'] . "." . $table['table']
+ . '" data-favtargetn="'
+ . md5($table['db'] . "." . $table['table'])
. '" >'
. PMA_Util::getIcon('b_favorite.png')
. '';
- $html .= '`' . $table['db'] . '`.`' . $table['table'] . '`';
+ $fav_params = array(
+ 'db' => $table['db'],
+ 'table' => $table['table']
+ );
+ $table_url = 'sql.php'
+ . PMA_URL_getCommon($fav_params);
+ $html .= '`'
+ . htmlspecialchars($table['db']) . '`.`'
+ . htmlspecialchars($table['table']) . '`';
$html .= '';
}
}
diff --git a/libraries/navigation/Navigation.class.php b/libraries/navigation/Navigation.class.php
index b7827f6b1c..d036c7e54c 100644
--- a/libraries/navigation/Navigation.class.php
+++ b/libraries/navigation/Navigation.class.php
@@ -189,9 +189,9 @@ class PMA_Navigation
$html .= ''
. PMA_Util::getIcon('lightbulb.png', __('Show'))
. ' | ';
diff --git a/libraries/navigation/Nodes/Node_DatabaseChild.class.php b/libraries/navigation/Nodes/Node_DatabaseChild.class.php
index 6e0a7ec57f..962a48c010 100644
--- a/libraries/navigation/Nodes/Node_DatabaseChild.class.php
+++ b/libraries/navigation/Nodes/Node_DatabaseChild.class.php
@@ -32,9 +32,9 @@ abstract class Node_DatabaseChild extends Node
. 'getItemType())
+ . '&itemName=' . urlencode($item)
+ . '&dbName=' . urlencode($db) . '"'
. ' class="hideNavItem ajax">'
. PMA_Util::getImage('lightbulb_off.png', __('Hide'))
. '';
diff --git a/libraries/structure.lib.php b/libraries/structure.lib.php
index 5e32c6935e..db5777184f 100644
--- a/libraries/structure.lib.php
+++ b/libraries/structure.lib.php
@@ -2736,9 +2736,8 @@ function PMA_checkFavoriteTable($db, $current_table)
function PMA_getHtmlForFavoriteAnchor($db, $current_table, $titles)
{
$html_output = ' $db,
'ajax_request' => true,
'favorite_table' => $current_table['TABLE_NAME'],
- (($already_favorite?'remove':'add') . '_favorite') => true);
+ (($already_favorite?'remove':'add') . '_favorite') => true
+ );
$fav_url = 'db_structure.php' . PMA_URL_getCommon($fav_params);
$html_output .= '" ';
$html_output .= 'href="' . $fav_url
. '" title="' . ($already_favorite ? __("Remove from Favorites")
: __("Add to Favorites"))
- . '" data-favtargets="' . $db . "." . $current_table['TABLE_NAME']
+ . '" data-favtargets="'
+ . md5($db . "." . $current_table['TABLE_NAME'])
. '" >'
. (!$already_favorite ? $titles['NoFavorite']
: $titles['Favorite']) . '';