Fix XSS in database structure page
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
parent
32f5126985
commit
90df124797
@ -962,18 +962,19 @@ function PMA_sortableTableHeader($title, $sort, $initial_sort_order = 'ASC')
|
||||
|
||||
$_url_params = array(
|
||||
'db' => $_REQUEST['db'],
|
||||
'pos' => 0, // We set the position back to 0 every time they sort.
|
||||
'sort' => $sort,
|
||||
'sort_order' => $future_sort_order,
|
||||
);
|
||||
|
||||
$url = 'db_structure.php' . PMA_URL_getCommon($_url_params);
|
||||
// We set the position back to 0 every time they sort.
|
||||
$url .= "&pos=0&sort=$sort&sort_order=$future_sort_order";
|
||||
if (! empty($_REQUEST['tbl_type'])) {
|
||||
$url .= "&tbl_type=" . $_REQUEST['tbl_type'];
|
||||
if (PMA_isValid($_REQUEST['tbl_type'], array('view', 'table'))) {
|
||||
$_url_params['tbl_type'] = $_REQUEST['tbl_type'];
|
||||
}
|
||||
if (! empty($_REQUEST['tbl_group'])) {
|
||||
$url .= "&tbl_group=" . $_REQUEST['tbl_group'];
|
||||
$_url_params['tbl_group'] = $_REQUEST['tbl_group'];
|
||||
}
|
||||
|
||||
$url = 'db_structure.php' . PMA_URL_getCommon($_url_params);
|
||||
|
||||
return PMA_Util::linkOrButton(
|
||||
$url, $title . $order_img, $order_link_params
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user