Index: install.php
===================================================================
RCS file: /cvs/drupal/drupal/install.php,v
retrieving revision 1.157
diff -u -p -r1.157 install.php
--- install.php	22 Feb 2009 17:55:28 -0000	1.157
+++ install.php	24 Feb 2009 11:10:02 -0000
@@ -254,7 +254,6 @@ function install_settings_form(&$form_st
       '#title' => st('Database name'),
       '#default_value' => empty($database['database']) ? '' : $database['database'],
       '#size' => 45,
-      '#maxlength' => 45,
       '#required' => TRUE,
       '#description' => st('The name of the database your @drupal data will be stored in. It must exist on your server before @drupal can be installed.', array('@drupal' => drupal_install_profile_name())),
     );
@@ -265,7 +264,6 @@ function install_settings_form(&$form_st
       '#title' => st('Database username'),
       '#default_value' => empty($database['username']) ? '' : $database['username'],
       '#size' => 45,
-      '#maxlength' => 45,
     );
 
     // Database username
@@ -274,7 +272,6 @@ function install_settings_form(&$form_st
       '#title' => st('Database password'),
       '#default_value' => empty($database['password']) ? '' : $database['password'],
       '#size' => 45,
-      '#maxlength' => 45,
     );
 
     $form['advanced_options'] = array(
@@ -291,7 +288,8 @@ function install_settings_form(&$form_st
       '#title' => st('Database host'),
       '#default_value' => empty($database['host']) ? 'localhost' : $database['host'],
       '#size' => 45,
-      '#maxlength' => 45,
+      // Hostnames can be 255 characters long.
+      '#maxlength' => 255,
       '#required' => TRUE,
       '#description' => st('If your database is located on a different server, change this.'),
     );
@@ -302,7 +300,8 @@ function install_settings_form(&$form_st
       '#title' => st('Database port'),
       '#default_value' => empty($database['port']) ? '' : $database['port'],
       '#size' => 45,
-      '#maxlength' => 45,
+      // The maximum port number is 65536, 5 digits.
+      '#maxlength' => 5,
       '#description' => st('If your database server is listening to a non-standard port, enter its number.'),
     );
 
@@ -313,7 +312,6 @@ function install_settings_form(&$form_st
       '#title' => st('Table prefix'),
       '#default_value' => '',
       '#size' => 45,
-      '#maxlength' => 45,
       '#description' => st('If more than one application will be sharing this database, enter a table prefix such as %prefix for your @drupal site here.', array('@drupal' => drupal_install_profile_name(), '%prefix' => $db_prefix)),
     );
 
