mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
fix(db): make sure getTables filter only accepts matches
Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
parent
d8c404c1ef
commit
9ff5072360
1 changed files with 2 additions and 2 deletions
|
|
@ -272,9 +272,9 @@ class ConvertType extends Command implements CompletionAwareInterface {
|
|||
/** @var string|AbstractAsset $asset */
|
||||
$filterExpression = '/^' . preg_quote($this->config->getSystemValue('dbtableprefix', 'oc_')) . '/';
|
||||
if ($asset instanceof AbstractAsset) {
|
||||
return preg_match($filterExpression, $asset->getName()) !== false;
|
||||
return preg_match($filterExpression, $asset->getName()) === 1;
|
||||
}
|
||||
return preg_match($filterExpression, $asset) !== false;
|
||||
return preg_match($filterExpression, $asset) === 1;
|
||||
});
|
||||
return $db->createSchemaManager()->listTableNames();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue