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.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 314b8bf39c6..ddb2a80259c 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -103,13 +103,13 @@
throw t('files', 'File name cannot be empty.');
}
// check for invalid characters
- var invalidCharacters =
- ['\\', '/', '<', '>', ':', '"', '|', '?', '*', '\n'];
- for (var i = 0; i < invalidCharacters.length; i++) {
- if (trimmedName.indexOf(invalidCharacters[i]) !== -1) {
- throw t('files', "Invalid name, '\\', '/', '<', '>', ':', '\"', '|', '?' and '*' are not allowed.");
- }
- }
+ //var invalidCharacters =
+ // ['\\', '/', '<', '>', ':', '"', '|', '?', '*', '\n'];
+ //for (var i = 0; i < invalidCharacters.length; i++) {
+ // if (trimmedName.indexOf(invalidCharacters[i]) !== -1) {
+ // throw t('files', "Invalid name, '\\', '/', '<', '>', ':', '\"', '|', '?' and '*' are not allowed.");
+ // }
+ //}
return true;
},
displayStorageWarnings: function() {