summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-06-12 14:11:28 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-06-12 14:11:28 +0200
commitf6e7c633a0045b51d22deb2dcba256e44aecbc7b (patch)
treee8344c7fb54383c847b83bc2cd2efc2ab8ac224c /apps
parentc44591e27a4f7a2dbe3a9e1cfa5e0ff53404126d (diff)
downloadnextcloud-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.js2
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;