From 2f5df9387d30e33b3903c9ec99ae5661ac1819d8 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Tue, 14 May 2019 10:06:17 +0200 Subject: Deprecate OC.fileIsBlacklisted and move it to the bundle Signed-off-by: Christoph Wurst --- apps/files/js/files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files/js') diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 38705e12ee2..abc85864fae 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -139,7 +139,7 @@ throw t('files', 'File name cannot be empty.'); } else if (trimmedName.indexOf('/') !== -1) { throw t('files', '"/" is not allowed inside a file name.'); - } else if (OC.fileIsBlacklisted(trimmedName)) { + } else if (!!(trimmedName.match(OC.config.blacklist_files_regex))) { throw t('files', '"{name}" is not an allowed filetype', {name: name}); } -- cgit v1.2.3