Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-10-28 17:11:41 +0400
committerGeorg Ehrke <dev@georgswebsite.de>2012-10-28 17:11:41 +0400
commitd7a6b094063a89b8ecce9392a603cb3c3a967db2 (patch)
treefdcdf3eab5adecb84915b5012d2f69315ee12991 /lib/setup.php
parentb8a48b55a359bb56f9cdf2d4c8099394d7f0cbb1 (diff)
deny the usage of dots in database name
Diffstat (limited to 'lib/setup.php')
-rw-r--r--lib/setup.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/setup.php b/lib/setup.php
index a072e00f91e..9231845da51 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -70,6 +70,9 @@ class OC_Setup {
if(empty($options['dbname'])) {
$error[] = "$dbprettyname enter the database name.";
}
+ if(substr_count($options['dbname'], '.') >= 1){
+ $error[] = "$dbprettyname you may not use dots in the database name";
+ }
if($dbtype != 'oci' && empty($options['dbhost'])) {
$error[] = "$dbprettyname set the database host.";
}