summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-12-17 06:51:47 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-12-17 06:51:47 +0000
commitc1f9032c9170940dbf01f161b52d0067ad0cf7c1 (patch)
treeb5c2fca868e7330ec746c09ef3de03109af19e39 /install.php
parentc6a190ea1051e27d1b110fbac42482f07801a607 (diff)
downloadbrdo-c1f9032c9170940dbf01f161b52d0067ad0cf7c1.tar.gz
brdo-c1f9032c9170940dbf01f161b52d0067ad0cf7c1.tar.bz2
#103519: Allow dot in database table prefix.
Diffstat (limited to 'install.php')
-rw-r--r--install.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/install.php b/install.php
index 005cb5009..80d697adb 100644
--- a/install.php
+++ b/install.php
@@ -309,8 +309,8 @@ function _install_settings_form_validate($db_prefix, $db_type, $db_user, $db_pas
}
// Verify the table prefix
- if (!empty($db_prefix) && is_string($db_prefix) && preg_match('/[^A-Za-z0-9_]/', $db_prefix)) {
- form_set_error('db_prefix', st('The database table prefix you have entered, %db_prefix, is invalid. The table prefix can only contain alphanumeric characters and underscores.', array('%db_prefix' => $db_prefix)), 'error');
+ if (!empty($db_prefix) && is_string($db_prefix) && !preg_match('/^[A-Za-z0-9_.]+$/', $db_prefix)) {
+ form_set_error('db_prefix', st('The database table prefix you have entered, %db_prefix, is invalid. The table prefix can only contain alphanumeric characters, underscores or dots.', array('%db_prefix' => $db_prefix)), 'error');
}
if (!empty($db_port) && !is_numeric($db_port)) {