Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog/unreleased/37765
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Change: Add values to the invalid uid list

Enhancement of the invalid uid list added by https://github.com/owncloud/core/pull/37268.

https://github.com/owncloud/core/issues/37765
6 changes: 5 additions & 1 deletion lib/private/User/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,11 @@ public function createUser($uid, $password) {
'avatars',
'meta',
'files_external',
'files_encryption'
'files_encryption',
'.htaccess',
'.ocdata',
'owncloud.db',
'owncloud.log'
];

if (\in_array(\strtolower($uid), $invalidUids)) {
Expand Down
4 changes: 4 additions & 0 deletions tests/lib/User/ManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,10 @@ public function usernameIsSpecialInvalidValueDataProvider() {
['meta'],
['files_external'],
['files_encryption'],
['.htaccess'],
['.ocdata'],
['owncloud.db'],
['owncloud.log']
];
}

Expand Down