[security] properly escape name of newly created table, see PMASA-2012-4

This commit is contained in:
Dieter Adriaenssens
2012-08-10 16:04:54 +02:00
parent d84b98d340
commit e094f34bed

View File

@@ -287,7 +287,9 @@ if (isset($_REQUEST['do_save_data'])) {
$new_table_string .= '<td align="center"> <input type="checkbox" id="checkbox_tbl_" name="selected_tbl[]" value="'.htmlspecialchars($table).'" /> </td>' . "\n";
$new_table_string .= '<th>';
$new_table_string .= '<a href="sql.php' . PMA_generate_common_url($tbl_url_params) . '">'. $table . '</a>';
$new_table_string .= '<a href="sql.php'
. PMA_generate_common_url($tbl_url_params) . '">'
. htmlspecialchars($table) . '</a>';
if (PMA_Tracker::isActive()) {
$truename = str_replace(' ', '&nbsp;', htmlspecialchars($table));