diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-02-18 17:44:13 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-09 10:38:37 +0100 |
commit | 4bac595068c813c56d8d5e580e560527ba80194d (patch) | |
tree | e7584ca8ff57a9b037388d428e47f390bc1a7fcc /apps/files/js/files.js | |
parent | 348fe105b13717757bee4150caa9d3546d6a7666 (diff) | |
download | nextcloud-server-4bac595068c813c56d8d5e580e560527ba80194d.tar.gz nextcloud-server-4bac595068c813c56d8d5e580e560527ba80194d.zip |
adding storage specific filename verification - refs #13640
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r-- | apps/files/js/files.js | 14 |
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() { |