diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-02-24 16:00:01 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-02-24 16:00:01 +0000 |
commit | a85b93feb0b9e450b440961cc9de7994e14665b6 (patch) | |
tree | 34354e70e01eb245fc2d76c5cb3736fb4afe6d96 /install.php | |
parent | 709594866e2a3d532e44a0a72d5cc1b10acb36b7 (diff) | |
download | brdo-a85b93feb0b9e450b440961cc9de7994e14665b6.tar.gz brdo-a85b93feb0b9e450b440961cc9de7994e14665b6.tar.bz2 |
- Patch #382096 by Arancaytar: improve the form limits so that they actually make sense and don't get in the way of SQLite support.
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/install.php b/install.php index 3c4f8f9b7..ec3bcf507 100644 --- a/install.php +++ b/install.php @@ -254,7 +254,6 @@ function install_settings_form(&$form_state, $profile, $install_locale, $setting '#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_state, $profile, $install_locale, $setting '#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_state, $profile, $install_locale, $setting '#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_state, $profile, $install_locale, $setting '#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_state, $profile, $install_locale, $setting '#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_state, $profile, $install_locale, $setting '#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)), ); |