diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-04-06 18:46:32 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-04-07 00:24:48 +0000 |
commit | 3fb420115d8754208498c374170ad6839029392d (patch) | |
tree | a463148d1d8ed75b3bdffbedcb0fbe6ab7a8982a /apps | |
parent | 9644b7e505dc90a1e683f77ad38dc6dc4e90fa2f (diff) | |
download | nextcloud-server-3fb420115d8754208498c374170ad6839029392d.tar.gz nextcloud-server-3fb420115d8754208498c374170ad6839029392d.zip |
Improve strictness of account file regex
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings/tests/UserMigration/AccountMigratorTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/tests/UserMigration/AccountMigratorTest.php b/apps/settings/tests/UserMigration/AccountMigratorTest.php index c668bb9e6af..1ad68dbd341 100644 --- a/apps/settings/tests/UserMigration/AccountMigratorTest.php +++ b/apps/settings/tests/UserMigration/AccountMigratorTest.php @@ -58,7 +58,7 @@ class AccountMigratorTest extends TestCase { private const ASSETS_DIR = __DIR__ . '/assets/'; - private const REGEX_ACCOUNT_FILE = '/' . Application::APP_ID . '\/' . '[a-z]+\.json' . '/'; + private const REGEX_ACCOUNT_FILE = '/^' . Application::APP_ID . '\/' . '[a-z]+\.json' . '$/'; protected function setUp(): void { $app = new App(Application::APP_ID); |