diff --git a/apps/files/js/files.js b/apps/files/js/files.js index b64840f439f..9c71a594c3e 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -510,8 +510,8 @@ $(document).ready(function() { $(this).append(input); input.focus(); input.change(function(){ - if(type != 'web' && $(this).val().indexOf('/')!=-1){ - $('#notification').text(t('files','Invalid name, \'/\' is not allowed.')); + if(type != 'web' && ($(this).val().indexOf('/')!=-1 || $(this).val().indexOf('\\')!=-1)) { + $('#notification').text(t('files', 'Invalid name, \'/\' or \'\\\' is not allowed.')); $('#notification').fadeIn(); return; } else if( type == 'folder' && $('#dir').val() == '/' && $(this).val() == 'Shared') {