mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
block slashes only for new files and new folders but not for file upload from url (bug #964)
This commit is contained in:
parent
c44591e27a
commit
f6e7c633a0
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue