diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-07-17 02:03:18 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-07-19 19:41:46 +0200 |
commit | 9716b0d7350aa28481a5a9642b74da847c0fa211 (patch) | |
tree | 0fcf5d02e5a39b60bc0aa60bfaa731b3b489ac08 /core | |
parent | 2e273e477abfc992e2841c3b3b8f19839505a944 (diff) | |
download | nextcloud-server-9716b0d7350aa28481a5a9642b74da847c0fa211.tar.gz nextcloud-server-9716b0d7350aa28481a5a9642b74da847c0fa211.zip |
refactor: Migrate some legacy and core functions to `IFilenameValidator`
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
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( |