diff --git a/libraries/DbSearch.php b/libraries/DbSearch.php index f6617dd8e6..23f227f6e1 100644 --- a/libraries/DbSearch.php +++ b/libraries/DbSearch.php @@ -334,22 +334,23 @@ class DbSearch $html_output .= ''; // Displays browse/delete link if result count > 0 if ($res_cnt > 0) { - $this_url_params['db'] = $GLOBALS['db']; - $this_url_params['table'] = $each_table; + $this_url_params['db'] = htmlspecialchars($GLOBALS['db']); + $this_url_params['table'] = htmlspecialchars($each_table); $browse_result_path = 'sql.php' . PMA_URL_getCommon($this_url_params); $html_output .= '' + . 'data-browse-sql="' + . htmlspecialchars($newsearchsqls['select_columns']). '" ' + . 'data-table-name="' . htmlspecialchars($each_table) . '" >' . __('Browse') . ''; $delete_result_path = $browse_result_path; $html_output .= '' - . __('Delete') . ''; + . ' data-delete-sql="' . htmlspecialchars($newsearchsqls['delete']) + . ' data-table-name="' . htmlspecialchars($each_table) . '"' + . '" >' . __('Delete') . ''; } else { $html_output .= ' ' . ' ';