max table and field sizes are 64 characters

This commit is contained in:
Loïc Chapeaux
2002-01-03 14:15:13 +00:00
parent 70c18d43ec
commit 772ad8c5ea
3 changed files with 5 additions and 2 deletions

View File

@@ -6,6 +6,9 @@ $Id$
$Source$
2001-01-03 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* db_details.php3, line 708; tbl_properties.inc.php3, line 71: maximum
table and field size is 64 characters. Suggested by
Marc Weidner <gurmbot at users.sourceforge.net>.
* db_details.php3:
- invalid xhtml statements;
- extend "check/uncheck all tables" feature to js disabled browsers.

View File

@@ -705,7 +705,7 @@ if ($num_tables > 0) {
<?php
echo ' ' . $strCreateNewTable . htmlspecialchars($db) . '&nbsp;:<br />' . "\n";
echo ' ' . $strName . '&nbsp;:&nbsp;' . "\n";
echo ' ' . '<input type="text" name="table" />' . "\n";
echo ' ' . '<input type="text" name="table" maxlength="64" />' . "\n";
// echo ' ' . $strNumberIndexes. '&nbsp;:&nbsp;' . "\n";
// echo ' ' . '<input type="text" name="num_indexes" size="2" />' . "\n";
echo ' ' . '<br />' . "\n";

View File

@@ -68,7 +68,7 @@ for ($i = 0 ; $i < $num_fields; $i++) {
}
echo "\n";
?>
<input type="text" name="field_name[]" size="10" value="<?php if (isset($row) && isset($row['Field'])) echo str_replace('"', '&quot;', $row['Field']); ?>" />
<input type="text" name="field_name[]" size="10" maxlength="64" value="<?php if (isset($row) && isset($row['Field'])) echo str_replace('"', '&quot;', $row['Field']); ?>" />
</td>
<td bgcolor="<?php echo $bgcolor; ?>">
<select name="field_type[]">