From d7a6b094063a89b8ecce9392a603cb3c3a967db2 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Sun, 28 Oct 2012 14:11:41 +0100 Subject: [PATCH] deny the usage of dots in database name --- core/templates/installation.php | 2 +- lib/setup.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/templates/installation.php b/core/templates/installation.php index c0b29ea909..5a3bd2cc9f 100644 --- a/core/templates/installation.php +++ b/core/templates/installation.php @@ -111,7 +111,7 @@

- +

diff --git a/lib/setup.php b/lib/setup.php index a072e00f91..9231845da5 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."; }