Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-14 11:06:17 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-14 11:07:56 +0300
commit2f5df9387d30e33b3903c9ec99ae5661ac1819d8 (patch)
tree317025ae0355a448173a55d0f7fe7f8aa87f9bbb /apps/files/js/files.js
parentc2177caf52bb3bdfb95c474bea9d9f66f51d8796 (diff)
Deprecate OC.fileIsBlacklisted and move it to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r--apps/files/js/files.js2
1 files changed, 1 insertions, 1 deletions
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});
}