diff options
author | Stephan Orbaugh <62374139+sorbaugh@users.noreply.github.com> | 2024-07-22 10:40:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-22 10:40:50 +0200 |
commit | 9ed2d3e4958ffb5fdd80d67c489a7a19b106ac0a (patch) | |
tree | aebb7e82c352069803e5798c44b18917b0455f10 /core | |
parent | c2a571e435bebb08a4b6429eea343c350d3ccaf6 (diff) | |
parent | 9716b0d7350aa28481a5a9642b74da847c0fa211 (diff) | |
download | nextcloud-server-9ed2d3e4958ffb5fdd80d67c489a7a19b106ac0a.tar.gz nextcloud-server-9ed2d3e4958ffb5fdd80d67c489a7a19b106ac0a.zip |
Merge pull request #46571 from nextcloud/chore/migrate-to-filenamevalidator
refactor: Migrate some legacy and core functions to `IFilenameValidator`
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller/AvatarController.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/Controller/AvatarController.php b/core/Controller/AvatarController.php index f29c9c5ab4f..dac2df37ac3 100644 --- a/core/Controller/AvatarController.php +++ b/core/Controller/AvatarController.php @@ -189,8 +189,7 @@ class AvatarController extends Controller { } elseif (!is_null($files)) { if ( $files['error'][0] === 0 && - is_uploaded_file($files['tmp_name'][0]) && - !\OC\Files\Filesystem::isFileBlacklisted($files['tmp_name'][0]) + is_uploaded_file($files['tmp_name'][0]) ) { if ($files['size'][0] > 20 * 1024 * 1024) { return new JSONResponse( |