summaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r--apps/files/js/files.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 153307fec52..a1e59015b1d 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -128,6 +128,8 @@
throw t('files', '"{name}" is an invalid file name.', {name: name});
} else if (trimmedName.length === 0) {
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)) {
throw t('files', '"{name}" is not an allowed filetype', {name: name});
}