diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-03-03 11:24:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-03 11:24:47 +0100 |
commit | 74f36173bcd9ef4867d8c01592f9cec197e0e364 (patch) | |
tree | 773f08e9a349b6eec0f24a12538dd3a1c36bc5d5 /lib | |
parent | ce430c3613575a3cae3961473eacafce6547340a (diff) | |
parent | bc91eb7c642e61d651dd690e578c08fcfb75c5ab (diff) | |
download | nextcloud-server-74f36173bcd9ef4867d8c01592f9cec197e0e364.tar.gz nextcloud-server-74f36173bcd9ef4867d8c01592f9cec197e0e364.zip |
Merge pull request #25882 from nextcloud/bug/25748/filter-other-tables
Filter out tables that does not belong to Nextcloud
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/DB/Migrator.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/DB/Migrator.php b/lib/private/DB/Migrator.php index dcf0db89f72..609ed5d6f70 100644 --- a/lib/private/DB/Migrator.php +++ b/lib/private/DB/Migrator.php @@ -181,9 +181,9 @@ class Migrator { /** @var string|AbstractAsset $asset */ $filterExpression = $this->getFilterExpression(); 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 $this->connection->getSchemaManager()->createSchema(); } @@ -210,9 +210,9 @@ class Migrator { /** @var string|AbstractAsset $asset */ $filterExpression = $this->getFilterExpression(); 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; }); $sourceSchema = $connection->getSchemaManager()->createSchema(); |