diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-12 14:11:28 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-12 14:11:28 +0200 |
commit | f6e7c633a0045b51d22deb2dcba256e44aecbc7b (patch) | |
tree | e8344c7fb54383c847b83bc2cd2efc2ab8ac224c /apps | |
parent | c44591e27a4f7a2dbe3a9e1cfa5e0ff53404126d (diff) | |
download | nextcloud-server-f6e7c633a0045b51d22deb2dcba256e44aecbc7b.tar.gz nextcloud-server-f6e7c633a0045b51d22deb2dcba256e44aecbc7b.zip |
block slashes only for new files and new folders but not for file upload from url (bug #964)
Diffstat (limited to 'apps')
-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 a079deb9539..3ba473e023d 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -452,7 +452,7 @@ $(document).ready(function() { input.focus(); input.change(function(){ var name=$(this).val(); - if(name.indexOf('/')!=-1){ + if(type != 'web' && name.indexOf('/')!=-1){ $('#notification').text(t('files','Invalid name, \'/\' is not allowed.')); $('#notification').fadeIn(); return; |