diff --git a/index.php b/index.php index 1b31c8c3..752a3518 100644 --- a/index.php +++ b/index.php @@ -29,6 +29,7 @@ if (isset($_GET["dump"])) { "enum" => 65535, "set" => 64, ); $unsigned = array("", "unsigned", "zerofill", "unsigned zerofill"); + $enum_length = '\'(?:\'\'|[^\'\\\\]+|\\\\.)*\'|"(?:""|[^"\\\\]+|\\\\.)*"'; if (isset($_GET["table"])) { include "./table.inc.php"; @@ -41,7 +42,6 @@ if (isset($_GET["dump"])) { $error = (in_array($_POST["token"], (array) $TOKENS) ? "" : lang('Invalid CSRF token. Send the form again.')); } $token = ($_POST && !$error ? $_POST["token"] : token()); - $enum_length = '\'(?:\'\'|[^\'\\\\]+|\\\\.)*\'|"(?:""|[^"\\\\]+|\\\\.)*"'; if (isset($_GET["default"])) { $_GET["edit"] = $_GET["default"]; }