summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-07-21 09:25:24 +0200
committerGitHub <noreply@github.com>2017-07-21 09:25:24 +0200
commit3d9fd4d0d179e4d66f689ff8f5eb5bcbf7dbddd2 (patch)
tree0ea48130a92c59d31ec02c40d363fc4291245cf3 /core
parent964d5338dc90908f1e041f8c162c78e220bc28ec (diff)
parent29e715a1b968f2b7f3b72a692d94055b31aaded9 (diff)
downloadnextcloud-server-3d9fd4d0d179e4d66f689ff8f5eb5bcbf7dbddd2.tar.gz
nextcloud-server-3d9fd4d0d179e4d66f689ff8f5eb5bcbf7dbddd2.zip
Merge pull request #5817 from nextcloud/add-basic-sql-injection-checker
Add Phan plugin to check for SQL injections
Diffstat (limited to 'core')
-rw-r--r--core/Command/Db/ConvertType.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php
index 4ca7899fec6..16864e57dbc 100644
--- a/core/Command/Db/ConvertType.php
+++ b/core/Command/Db/ConvertType.php
@@ -261,6 +261,14 @@ class ConvertType extends Command implements CompletionAwareInterface {
return $db->getSchemaManager()->listTableNames();
}
+ /**
+ * @param Connection $fromDB
+ * @param Connection $toDB
+ * @param $table
+ * @param InputInterface $input
+ * @param OutputInterface $output
+ * @suppress SqlInjectionChecker
+ */
protected function copyTable(Connection $fromDB, Connection $toDB, $table, InputInterface $input, OutputInterface $output) {
$chunkSize = $input->getOption('chunk-size');