]> git.joonet.de Git - adminer.git/commitdiff
Print CSRF token without import (bug #3582462)
authorJakub Vrana <jakub@vrana.cz>
Sat, 1 Dec 2012 20:13:55 +0000 (12:13 -0800)
committerJakub Vrana <jakub@vrana.cz>
Sat, 1 Dec 2012 20:13:55 +0000 (12:13 -0800)
adminer/select.inc.php

index b3697724450862179f525ed3cab259dd9222214f..9e7d26babe2c1c6c516c4492195214dcfd8e2ae2 100644 (file)
@@ -474,12 +474,12 @@ if (!$columns) {
                        echo "<input type='file' name='csv_file'> ";
                        echo html_select("separator", array("csv" => "CSV,", "csv;" => "CSV;", "tsv" => "TSV"), $adminer_import["format"], 1); // 1 - select
                        echo " <input type='submit' name='import' value='" . lang('Import') . "'>";
-                       echo "<input type='hidden' name='token' value='$token'>\n";
                        echo "</div></fieldset>\n";
                }
                
                $adminer->selectEmailPrint(array_filter($email_fields, 'strlen'), $columns);
                
+               echo "<p><input type='hidden' name='token' value='$token'></p>\n";
                echo "</form>\n";
        }
 }