[Pkg-owncloud-commits] [owncloud] 11/153: Check target DB type

David Prévot taffit at moszumanska.debian.org
Tue May 27 03:05:27 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit eede20c5acb4135f96f318a4ad0a146dd562861c
Author: Bart Visscher <bartv at thisnet.nl>
Date:   Tue Feb 11 17:59:50 2014 +0100

    Check target DB type
---
 core/command/db/convertfromsqlite.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/core/command/db/convertfromsqlite.php b/core/command/db/convertfromsqlite.php
index cd3e494..7170658 100644
--- a/core/command/db/convertfromsqlite.php
+++ b/core/command/db/convertfromsqlite.php
@@ -97,6 +97,9 @@ class ConvertFromSqlite extends Command {
 		$hostname = $input->getArgument('hostname');
 		$dbname = $input->getArgument('database');
 
+		if (!isset(self::$type2driver[$type])) {
+			throw new InvalidArgumentException('Unknown type: '.$type);
+		}
 		if ($input->getOption('password')) {
 			$password = $input->getOption('password');
 		} else {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list