mirror of
https://github.com/vrana/adminer.git
synced 2026-06-17 20:11:27 +02: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:
@@ -117,13 +117,14 @@ if ($_POST && !$error) {
|
||||
$error = $mysql->error;
|
||||
}
|
||||
}
|
||||
|
||||
page_header((isset($_GET["host"]) ? lang('Username') . ": " . htmlspecialchars("$_GET[user]@$_GET[host]") : lang('Create user')), array("privileges" => lang('Privileges')));
|
||||
|
||||
if ($error) {
|
||||
echo "<p class='error'>" . lang('Unable to operate user') . ": " . htmlspecialchars($error) . "</p>\n";
|
||||
}
|
||||
if ($_POST) {
|
||||
$row = $_POST;
|
||||
$grants = $new_grants;
|
||||
echo "<p class='error'>" . lang('Unable to operate user') . ": " . htmlspecialchars($error) . "</p>\n";
|
||||
} else {
|
||||
$row = $_GET + array("host" => "localhost");
|
||||
$row["pass"] = $old_pass;
|
||||
|
||||
Reference in New Issue
Block a user