diff --git a/create.inc.php b/create.inc.php index 0aac00f1..5acf780b 100644 --- a/create.inc.php +++ b/create.inc.php @@ -106,6 +106,11 @@ if ($_POST) { $row = array("fields" => array(array("field" => "")), "partition_names" => array()); } $collations = collations(); + +$suhosin = floor(extension_loaded("suhosin") ? (min(ini_get("suhosin.request.max_vars"), ini_get("suhosin.post.max_vars")) - 13) / 8 : 0); +if ($suhosin && count($row["fields"]) > $suhosin) { + echo "
" . htmlspecialchars(lang('Maximum number of allowed fields exceeded. Please increase %s and %s.', 'suhosin.post.max_vars', 'suhosin.request.max_vars')) . "
\n"; +} ?>