From: Bjoern Schiessle Date: Tue, 12 Jun 2012 12:11:28 +0000 (+0200) Subject: block slashes only for new files and new folders but not for file upload from url... X-Git-Tag: v4.5.0beta1~74^2~421^2~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f6e7c633a0045b51d22deb2dcba256e44aecbc7b;p=nextcloud-server.git block slashes only for new files and new folders but not for file upload from url (bug #964) --- 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;