aboutsummaryrefslogtreecommitdiffstats
path: root/core/command
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-01-12 13:57:46 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-01-12 16:28:11 +0100
commit1d2bef0a0116eefdd81221ba7502497845f0747b (patch)
treedeebc29175af5d851fc79cd6a373384b1baf7c00 /core/command
parentddf81c2ed988ddce244fd60c2a3a08027e9c228e (diff)
downloadnextcloud-server-1d2bef0a0116eefdd81221ba7502497845f0747b.tar.gz
nextcloud-server-1d2bef0a0116eefdd81221ba7502497845f0747b.zip
Use a special filter expression for Oracle to filter the prefix - fixes #13220
Diffstat (limited to 'core/command')
-rw-r--r--core/command/db/converttype.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/command/db/converttype.php b/core/command/db/converttype.php
index 8d1560b0511..9d03b705d12 100644
--- a/core/command/db/converttype.php
+++ b/core/command/db/converttype.php
@@ -228,8 +228,9 @@ class ConvertType extends Command {
}
protected function getTables(Connection $db) {
+ $filterExpression = '/^' . preg_quote($this->config->getSystemValue('dbtableprefix', 'oc_')) . '/';
$db->getConfiguration()->
- setFilterSchemaAssetsExpression('/^'.$this->config->getSystemValue('dbtableprefix', 'oc_').'/');
+ setFilterSchemaAssetsExpression($filterExpression);
return $db->getSchemaManager()->listTableNames();
}