Protection against big POST data
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@384 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
14ba800b74
commit
02248834cb
|
@ -15,9 +15,11 @@ if ($_POST && !$error) {
|
|||
|
||||
page_header(strlen($_GET["createv"]) ? lang('Alter view') : lang('Create view'), array("view" => $_GET["createv"]), $_GET["createv"]);
|
||||
|
||||
if ($error) {
|
||||
echo "<p class='error'>" . lang('Unable to operate view') . ": " . htmlspecialchars($error) . "</p>\n";
|
||||
}
|
||||
if ($_POST) {
|
||||
$row = $_POST;
|
||||
echo "<p class='error'>" . lang('Unable to operate view') . ": " . htmlspecialchars($error) . "</p>\n";
|
||||
} elseif (strlen($_GET["createv"])) {
|
||||
$row = view($_GET["createv"]);
|
||||
$row["name"] = $_GET["createv"];
|
||||
|
|
Loading…
Reference in a new issue