diff options
author | Brice Maron <brice@bmaron.net> | 2012-11-16 14:59:14 +0000 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-11-22 22:05:41 +0100 |
commit | dceb2b7c32413806680158ebe22db78a216224f5 (patch) | |
tree | 60e151cb8e2df7b56b3f57d7e5119b83330294ec /apps | |
parent | 270d1199a63429aa3d995607dc78922da3e56d7c (diff) | |
download | nextcloud-server-dceb2b7c32413806680158ebe22db78a216224f5.tar.gz nextcloud-server-dceb2b7c32413806680158ebe22db78a216224f5.zip |
Show error message to prevent adding a shared folder in the root dir fix #468
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/files.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index d454a74f06e..b64840f439f 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -514,6 +514,10 @@ $(document).ready(function() { $('#notification').text(t('files','Invalid name, \'/\' is not allowed.')); $('#notification').fadeIn(); return; + } else if( type == 'folder' && $('#dir').val() == '/' && $(this).val() == 'Shared') { + $('#notification').text(t('files','Invalid folder name. Usage of "Shared" is reserved by Owncloud')); + $('#notification').fadeIn(); + return; } var name = getUniqueName($(this).val()); if (name != $(this).val()) { |