mirror of
https://github.com/vrana/adminer.git
synced 2026-01-08 00:22:57 +01:00
Protection against big POST data
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@373 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -28,12 +28,13 @@ if ($_POST && !$error) {
|
||||
}
|
||||
$error = $mysql->error;
|
||||
}
|
||||
|
||||
page_header(strlen($_GET["db"]) ? lang('Alter database') : lang('Create database'), array(), $_GET["db"]);
|
||||
$collations = collations();
|
||||
|
||||
if ($_POST) {
|
||||
$collations = collations();
|
||||
if ($error) {
|
||||
echo "<p class='error'>" . lang('Unable to operate database') . ": " . htmlspecialchars($error) . "</p>\n";
|
||||
}
|
||||
if ($_POST) {
|
||||
$name = $_POST["name"];
|
||||
$collate = $_POST["collation"];
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user