From a3f3cb346bebb09dd89f31705c43c0c7d5c690d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Wed, 17 Oct 2007 21:47:14 +0000 Subject: Drupal 6.0-beta 2 release with all Drupal 5.3 security fixes applied --- install.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'install.php') diff --git a/install.php b/install.php index 38d2e80f0..27b426d59 100644 --- a/install.php +++ b/install.php @@ -208,6 +208,14 @@ function install_change_settings($profile = 'default', $install_locale = '') { exit; } + if ($db_url == 'mysql://username:password@localhost/databasename') { + $db_user = $db_pass = $db_path = ''; + } + elseif (!empty($db_url)) { + // Do not install over a configured settings.php. + install_already_done_error(); + } + $output = drupal_get_form('install_settings_form', $profile, $install_locale, $settings_file, $db_url, $db_type, $db_prefix, $db_user, $db_pass, $db_host, $db_port, $db_path); drupal_set_title(st('Database configuration')); print theme('install_page', $output); -- cgit v1.2.3