Fix XSS in indexes (non-MySQL only)

This commit is contained in:
Jakub Vrana 2015-11-08 11:41:44 -08:00
parent 6c6bb45d3d
commit 4be0b6655e
2 changed files with 2 additions and 1 deletions

View file

@ -117,7 +117,7 @@ foreach ($row["indexes"] as $index) {
$i = 1;
foreach ($index["columns"] as $key => $column) {
echo "<span>" . select_input(
" name='indexes[$j][columns][$i]' onchange=\"" . ($i == count($index["columns"]) ? "indexesAddColumn" : "indexesChangeColumn") . "(this, '" . js_escape($jush == "sql" ? "" : $_GET["indexes"] . "_") . "');\"",
" name='indexes[$j][columns][$i]' onchange=\"" . ($i == count($index["columns"]) ? "indexesAddColumn" : "indexesChangeColumn") . "(this, '" . h(js_escape($jush == "sql" ? "" : $_GET["indexes"] . "_")) . "');\"",
($fields ? array_combine($fields, $fields) : $fields),
$column
);

View file

@ -1,4 +1,5 @@
Adminer 4.2.3-dev:
Fix XSS in indexes (non-MySQL only)
Support PHP 7
Greek translation
Galician translation