Skip to content

Commit

Permalink
Fix XSS in alter table (found by HP Fortify)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Aug 6, 2015
1 parent ea0c9d9 commit 596f8df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions adminer/include/editing.inc.php
Expand Up @@ -234,6 +234,7 @@ function type_class($type) {
*/
function edit_fields($fields, $collations, $type = "TABLE", $foreign_keys = array(), $comments = false) {
global $connection, $inout;
$fields = array_values($fields);
?>
<thead><tr class="wrap">
<?php if ($type == "PROCEDURE") { ?><td>&nbsp;<?php } ?>
Expand Down
2 changes: 1 addition & 1 deletion adminer/include/version.inc.php
@@ -1,2 +1,2 @@
<?php
$VERSION = "4.2.1";
$VERSION = "4.2.2";
3 changes: 3 additions & 0 deletions changes.txt
@@ -1,3 +1,6 @@
Adminer 4.2.2 (released ):
Fix XSS in alter table (found by HP Fortify)

Adminer 4.2.1 (released 2015-03-10):
Send referrer header to the same domain
MySQL: Fix usage of utf8mb4 if the client library doesn't support it
Expand Down

0 comments on commit 596f8df

Please sign in to comment.