Skip to content

Commit e094f34

Browse files
committed
[security] properly escape name of newly created table, see PMASA-2012-4
1 parent d84b98d commit e094f34

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tbl_create.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,9 @@
287287
$new_table_string .= '<td align="center"> <input type="checkbox" id="checkbox_tbl_" name="selected_tbl[]" value="'.htmlspecialchars($table).'" /> </td>' . "\n";
288288

289289
$new_table_string .= '<th>';
290-
$new_table_string .= '<a href="sql.php' . PMA_generate_common_url($tbl_url_params) . '">'. $table . '</a>';
290+
$new_table_string .= '<a href="sql.php'
291+
. PMA_generate_common_url($tbl_url_params) . '">'
292+
. htmlspecialchars($table) . '</a>';
291293

292294
if (PMA_Tracker::isActive()) {
293295
$truename = str_replace(' ', '&nbsp;', htmlspecialchars($table));

0 commit comments

Comments
 (0)