diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/files.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index bb80841055b..b8972bed6b8 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -505,8 +505,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; } |