Skip to content

Commit 8f6ea6a

Browse files
committed
chore: remove OC.fileIsBlacklisted
Its deprecated since Nextcloud 18 and nowadays we have much more complex logic for this. So the proper replacement is to use `validateFilename` from `@nextcloud/files` package. Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent 9e1ed70 commit 8f6ea6a

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

core/src/OC/index.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,6 @@ export default {
105105
/*
106106
* Deprecated helpers to be removed
107107
*/
108-
/**
109-
* Check if a user file is allowed to be handled.
110-
*
111-
* @param {string} file to check
112-
* @return {boolean}
113-
* @deprecated 17.0.0
114-
*/
115-
fileIsBlacklisted: (file) => !!(file.match(Config.blacklist_files_regex)),
116108
Apps,
117109
AppConfig,
118110
appConfig,

0 commit comments

Comments
 (0)