Skip to content

Commit

Permalink
Fix XSS in Hide navigation items feature
Browse files Browse the repository at this point in the history
Signed-off-by: Ann + J.M <phpMyAdmin@ZweiSteinSoft.de>
  • Loading branch information
ZweiSteinSoft authored and lem9 committed Jun 21, 2014
1 parent 4bb85f5 commit daa98d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions libraries/navigation/Navigation.class.php
Expand Up @@ -189,9 +189,9 @@ public function getItemUnhideDialog($dbName, $itemType = null, $tableName = null
$html .= '<td style="width:80px"><a href="navigation.php?'
. PMA_URL_getCommon()
. '&unhideNavItem=true'
. '&itemType=' . $t
. '&itemName=' . urldecode($hiddenItem)
. '&dbName=' . urldecode($dbName) . '"'
. '&itemType=' . urlencode($t)
. '&itemName=' . urlencode($hiddenItem)
. '&dbName=' . urlencode($dbName) . '"'
. ' class="unhideNavItem ajax">'
. PMA_Util::getIcon('lightbulb.png', __('Show'))
. '</a></td>';
Expand Down
6 changes: 3 additions & 3 deletions libraries/navigation/Nodes/Node_DatabaseChild.class.php
Expand Up @@ -32,9 +32,9 @@ public function getHtmlForControlButtons()
. '<a href="navigation.php?'
. PMA_URL_getCommon()
. '&hideNavItem=true'
. '&itemType=' . urldecode($this->getItemType())
. '&itemName=' . urldecode($item)
. '&dbName=' . urldecode($db) . '"'
. '&itemType=' . urlencode($this->getItemType())
. '&itemName=' . urlencode($item)
. '&dbName=' . urlencode($db) . '"'
. ' class="hideNavItem ajax">'
. PMA_Util::getImage('lightbulb_off', __('Hide'))
. '</a></span>';
Expand Down

0 comments on commit daa98d0

Please sign in to comment.