From ef6b6ac230c7d01c73c90c9e5e0c5fec4010fd8e Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Tue, 12 Jun 2012 14:11:28 +0200 Subject: [PATCH] block slashes only for new files and new folders but not for file upload from url (bug #964) --- apps/files/js/files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/js/files.js b/apps/files/js/files.js index db29b22275..46dbe28f04 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -448,7 +448,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;