diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-14 10:06:17 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-14 10:07:56 +0200 |
commit | 2f5df9387d30e33b3903c9ec99ae5661ac1819d8 (patch) | |
tree | 317025ae0355a448173a55d0f7fe7f8aa87f9bbb /apps/files | |
parent | c2177caf52bb3bdfb95c474bea9d9f66f51d8796 (diff) | |
download | nextcloud-server-2f5df9387d30e33b3903c9ec99ae5661ac1819d8.tar.gz nextcloud-server-2f5df9387d30e33b3903c9ec99ae5661ac1819d8.zip |
Deprecate OC.fileIsBlacklisted and move it to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/files.js | 2 |
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}); } |