diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-09-26 21:07:08 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-09-26 21:07:08 +0200 |
commit | 9b7ef2962eca5db6df9f9d1a7af73ba477d61a1f (patch) | |
tree | e92f97326c58f5b8b63b5e39a1ea3f36efa31be8 /lib/private | |
parent | 8eb03e712aedc7c768c1d827732b957100eb22c3 (diff) | |
download | nextcloud-server-9b7ef2962eca5db6df9f9d1a7af73ba477d61a1f.tar.gz nextcloud-server-9b7ef2962eca5db6df9f9d1a7af73ba477d61a1f.zip |
remove listeners to OC_Filesystem::(write|rename) old style hooks
- the events are not emitted anymore
- OC_Filesystem::isBlacklisted() is not called from anywhere else
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Files/Filesystem.php | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/private/Files/Filesystem.php b/lib/private/Files/Filesystem.php index 9542666b03c..b9b9534b15f 100644 --- a/lib/private/Files/Filesystem.php +++ b/lib/private/Files/Filesystem.php @@ -489,25 +489,6 @@ class Filesystem { } /** - * checks if a file is blacklisted for storage in the filesystem - * Listens to write and rename hooks - * - * @param array $data from hook - */ - public static function isBlacklisted($data) { - if (isset($data['path'])) { - $path = $data['path']; - } elseif (isset($data['newpath'])) { - $path = $data['newpath']; - } - if (isset($path)) { - if (self::isFileBlacklisted($path)) { - $data['run'] = false; - } - } - } - - /** * @param string $filename * @return bool */ |