From 9716b0d7350aa28481a5a9642b74da847c0fa211 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Wed, 17 Jul 2024 02:03:18 +0200 Subject: refactor: Migrate some legacy and core functions to `IFilenameValidator` Signed-off-by: Ferdinand Thiessen --- core/Controller/AvatarController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core') 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( -- cgit v1.2.3